Function at 0x46a65a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x478b78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x1c]
push ebx
xor ebx, ebx
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [fcn.004780bc]
push edi
xor edi, edi
mov dword [ebp - 0x12c], edx
inc edi
mov dword [ebp - 0x120], ecx
cmp eax, edi
mov dword [ebp - 0x118], ebx
push edx
cmovl eax, edi
mov dword [ebp - 0xd8], ebx
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0xbc], ebx
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0xc4], ebx
mov dword [ebp - 0xfc], ebx
mov dword [ebp - 0xa8], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xa4], eax
call esi
mov ebx, eax
cmp dword [ebx + 0x34], 0x13
je 0x46a70c
cmp dword [ebx + 0x34], 0x1c
jne 0x46a79a
cmp dword [ebx + 0x2c], 0xffffffff
mov dword [ebp - 0x94], edi
je 0x46a78a
lea eax, [ebp - 0x130]
push eax
push dword [ebx + 0x2c]
push 0x65
push dword [ebp + 0xc]
call 0x4980fd
test eax, eax
jne 0x46a78a
push dword [ebp - 0x130]
call esi
push dword [ebx + 0x30]
push eax
call fcn.0047a22f
mov esi, eax
mov dword [ebp - 0xb0], esi
test byte [esi + 0xf4], 0x80
je 0x46a772
push 0
push 0x1000
lea eax, [esi + 0x2c]
push eax
call 0x4c7a72
and dword [esi + 0xfc], 0
and dword [esi + 0x100], 0
jmp 0x46a77a
xor edi, edi
mov dword [ebp - 0x94], edi
push dword [ebp - 0x130]
call dword [fcn.004780b8]
test edi, edi
je 0x46a79a
cmp dword [ebx + 0x34], 0x13
push 0x21
pop eax
push 0xe
pop ecx
cmove eax, ecx
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0xa0]
mov ecx, dword [ebx + 0x8c]
add eax, ebx
mov edx, dword [ebx + 0x34]
mov edi, ecx
sub edi, dword [ebx + 0x90]
mov esi, dword [ebx + 0x80]
mov dword [ebp - 0xcc], eax
mov eax, edx
mov dword [ebp - 0x84], edi
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0x100], esi
sub eax, 0x17
je 0x46a818
dec eax
sub eax, 1
je 0x46a80c
sub eax, 3
je 0x46a808
sub eax, 1
je 0x46a803
sub eax, 4
jne 0x46a85f
push 0xe
pop eax
mov edx, eax
xor eax, eax
mov dword [ebp - 0xc8], edx
inc eax
mov dword [ebp - 0xfc], eax
jmp 0x46a862
push 6
pop edx
jmp 0x46a7f2
push 0x13
jmp 0x46a805
mov dword [ebp - 0xc8], 5
jmp 0x46a822
mov dword [ebp - 0xc8], 0x10
xor eax, eax
inc eax
mov esi, eax
mov dword [ebp - 0xfc], eax
lea eax, [ecx - 1]
push eax
push ebx
call fcn.0047a22f
mov edi, eax
push edi
push ebx
mov dword [ebp - 0x88], edi
call fcn.0047a319
mov edi, dword [ebp - 0x84]
xor ecx, ecx
mov edx, dword [ebp - 0xc8]
test eax, eax
cmovs esi, ecx
mov dword [ebp - 0x124], esi
xor eax, eax
inc eax
cmp dword [ebp - 0xa4], 4
jne 0x46a892
cmp edi, eax
jne 0x46a892
mov dword [ebp - 0xa4], 2
cmp edx, 3
je 0x46a88e
cmp edx, 8
jne 0x46a892
push 0xf
pop ecx
mov dword [ebp - 0xc8], ecx
jmp 0x46a898
push 5
jmp 0x46a885
mov ecx, dword [ebp - 0xc8]
mov eax, edi
mov dword [ebp - 0xf4], edi
cdq
idiv dword [ebp - 0xa4]
xor edx, edx
mov esi, eax
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xa4]
cmp eax, 1
setg dl
imul eax, esi
inc edx
mov dword [ebp - 0xa0], edx
sub dword [ebp - 0xf4], eax
je 0x46a8d6
inc esi
mov dword [ebp - 0x8c], esi
push 3
pop eax
cmp ecx, eax
jne 0x46a8f7
xor ecx, ecx
mov dword [ebp - 0xa0], eax
inc ecx
mov dword [ebp - 0xc], 2
mov eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
jmp 0x46a918
test edx, edx
jle 0x46a915
mov eax, dword [ebp - 0xa4]
lea edi, [ebp - 0x10]
mov ecx, edx
cdq
idiv dword [ebp - 0xa0]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc0], eax
lea ecx, [edi + 1]
mov eax, dword [ebx + 0x78]
xor edx, edx
add eax, dword [ebx + 0x70]
add eax, dword [ebx + 0x84]
mov dword [ebp - 0x108], eax
xor eax, eax
inc eax
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x90], eax
lea eax, [ecx - 1]
mov dword [ebp - 0xe4], edx
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0xe0], eax
add eax, esi
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x11c], edx
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0xec], eax
cmp edx, 0xd
jg 0x46aabb
je 0x46aab0
mov eax, edx
sub eax, 3
je 0x46aa09
sub eax, 1
je 0x46a9e1
dec eax
sub eax, 1
je 0x46a9d6
dec eax
sub eax, 1
je 0x46ab35
sub eax, 1
je 0x46a9ec
sub eax, 3
jne 0x46aa3d
inc eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], eax
mov eax, ecx
mov dword [ebp - 0xe0], eax
inc eax
add eax, esi
mov dword [ebp - 0xec], eax
xor ecx, ecx
inc ecx
mov dword [ebp - 0xe4], ecx
jmp 0x46aa40
xor ecx, ecx
inc ecx
mov dword [ebp - 0xe4], ecx
jmp 0x46a9ef
xor ecx, ecx
inc ecx
push 2
pop eax
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], eax
mov dword [ebp - 0x90], eax
jmp 0x46ab24
push 2
pop eax
cmp edi, eax
jg 0x46aa20
mov eax, dword [ebp - 0x110]
cmp edi, 1
cmovg eax, dword [ebp - 0xb4]
mov dword [ebp - 0x110], eax
mov eax, ecx
lea ecx, [eax + esi*2]
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xec], ecx
xor ecx, ecx
inc ecx
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x46ab89
cmp edi, ecx
jne 0x46ab89
mov eax, dword [ebx + 0x34]
mov esi, ecx
sub eax, 6
je 0x46ab64
sub eax, 0xa
je 0x46ab64
sub eax, 7
je 0x46aa7d
dec eax
sub eax, 1
je 0x46aa7d
sub eax, 4
jne 0x46ab8f
mov eax, dword [ebx + 0x8c]
dec eax
push eax
push ebx
call fcn.0047a22f
mov edi, eax
push edi
push ebx
mov dword [ebp - 0x88], edi
call fcn.0047a319
mov edx, dword [ebp - 0xc8]
cmp eax, 0xffffffff
je 0x46ab8f
xor esi, esi
jmp 0x46ab8f
xor ecx, ecx
inc ecx
mov dword [ebp - 0xe4], ecx
jmp 0x46ab1e
mov eax, edx
sub eax, 0xe
je 0x46ab47
sub eax, 1
je 0x46ab35
sub eax, 3
je 0x46ab1b
sub eax, 1
je 0x46aaf7
sub eax, 3
jne 0x46aa3d
inc eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], eax
mov eax, ecx
lea ecx, [esi + 1]
add ecx, eax
jmp 0x46aa31
xor ecx, ecx
inc ecx
and dword [ebp - 0x108], 0
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xac], ecx
jmp 0x46ab24
xor ecx, ecx
inc ecx
mov dword [ebp - 0x11c], ecx
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x100], eax
jmp 0x46aa40
and dword [ebp - 0x114], 0
lea eax, [edi + edi]
lea ecx, [eax + esi]
jmp 0x46aa31
xor ecx, ecx
inc ecx
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 0xec], ecx
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0xac], ecx
jmp 0x46ab24
push 0
push ebx
call fcn.0047a22f
push eax
push ebx
mov dword [ebp - 0x88], eax
call fcn.0047a319
mov edx, dword [ebp - 0xc8]
xor ecx, ecx
cmp eax, 0xffffffff
cmovne esi, ecx
jmp 0x46ab8f
mov esi, dword [ebp - 0xa8]
cmp dword [ebx + 0x9c], 0
je 0x46ab9c
test esi, esi
je 0x46abb0
xor esi, esi
mov dword [ebp - 0xec], esi
mov dword [ebp - 0xe0], esi
mov dword [ebp - 0x90], esi
mov esi, dword [ebp - 0xf4]
test esi, esi
je 0x46abdb
mov ecx, dword [ebp - 0xa0]
xor eax, eax
test ecx, ecx
jle 0x46abe8
sub esi, dword [ebp + eax*4 - 0x10]
mov dword [ebp - 0xf4], esi
test esi, esi
jle 0x46abe2
inc eax
cmp eax, ecx
jl 0x46abc6
jmp 0x46abe8
mov eax, dword [ebp - 0xa0]
dec eax
mov dword [ebp - 0xf4], eax
push 0xc
xor eax, eax
lea edi, [ebp - 0x40]
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0xf0]
test edi, edi
je 0x46ac19
cmp edx, 0x13
sete al
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
call fcn.0046d266
and dword [ebp - 0x9c], 0
xor esi, esi
mov eax, dword [ebp - 0x8c]
test edi, edi
cmovne esi, dword [ebp - 0x5c]
xor edi, edi
xor edx, edx
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0x98], edx
test eax, eax
jle 0x46b19a
and dword [ebp - 0xd8], edx
and dword [ebp - 0xa8], 0
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0xf8], ecx
mov eax, 0x7fff
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xa0], ecx
jle 0x46afc1
test esi, esi
je 0x46ac8e
add ecx, dword [ebp + esi*4 - 0x14]
mov dword [ebp - 0xf8], ecx
mov eax, dword [ebp + esi*4 - 0x10]
mov dword [ebp - 0xb4], eax
lea edi, [eax + ecx]
mov eax, dword [ebp - 0x9c]
add eax, ecx
cmp eax, dword [ebp - 0x84]
jge 0x46afb5
mov ecx, dword [ebp - 0x8c]
dec ecx
cmp edx, ecx
jl 0x46ad6c
cmp dword [ebp - 0xfc], 0
jne 0x46ad6c
mov edi, dword [ebp - 0x9c]
test esi, esi
jne 0x46adfc
push dword [ebp + 0x20]
push dword [ebp - 0x120]
push dword [ebp + 0x14]
push dword [ebp - 0xe8]
push dword [ebp - 0x84]
push edi
push dword [ebp - 0x12c]
push dword [ebp + 0xc]
push dword [ebp - 0x128]
call fcn.0046fa10
mov dword [ebp - 0x118], eax
test eax, eax
je 0x46adfc
mov ebx, dword [ebp - 0x118]
mov esi, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x84]
lea esi, [edi + ecx]
cmp esi, edx
jg 0x46adc3
push dword [ebp + 0x20]
push dword [ebp - 0x120]
push dword [ebp + 0x14]
push dword [ebp - 0xe8]
push esi
push eax
push dword [ebp - 0x12c]
push dword [ebp + 0xc]
push dword [ebp - 0x128]
call fcn.0046fa10
mov ecx, eax
mov dword [ebp - 0x118], ecx
test ecx, ecx
jne 0x46ad14
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x84]
cmp dword [ebp - 0xc8], 8
jne 0x46adf6
cmp esi, edx
jge 0x46adf6
xor eax, eax
inc eax
push eax
lea eax, [edi + ecx]
mov ecx, dword [ebp - 0xcc]
add eax, dword [ebp - 0x90]
add ecx, 0xfffffffc
imul eax, eax, 0x14
push 0x4000
add eax, ecx
push eax
call 0x4c7a72
mov edi, dword [ebp - 0x9c]
xor esi, esi
mov dword [ebp - 0x104], esi
cmp dword [ebp - 0xb4], esi
jle 0x46af3d
mov eax, dword [ebp - 0xf8]
add eax, edi
add eax, esi
cmp eax, dword [ebp - 0x84]
jge 0x46af3d
push eax
push ebx
call fcn.0047a22f
mov ecx, eax
mov dword [ebp - 0x88], ecx
lea edi, [ecx + 0x30]
test esi, esi
jne 0x46ae4a
mov eax, dword [edi]
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0x11c], 0
je 0x46ae58
mov eax, dword [ecx + 0x68]
jmp 0x46aeb4
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov eax, dword [ecx + 0xf0]
test eax, eax
mov esi, dword [ecx + 0xe8]
cmovne edx, eax
test esi, esi
je 0x46ae75
sub edx, esi
test dword [ecx + 0x2c], 0x2000
jne 0x46ae92
mov eax, dword [ebp - 0x88]
mov ecx, dword [ecx + 0x84]
sub ecx, dword [eax + 0x8c]
add edx, ecx
mov eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0xdc]
sar ecx, 1
add ecx, esi
mov esi, dword [ebp - 0x104]
cmp ecx, eax
mov dword [ebp - 0x94], ecx
cmovl eax, ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xdc], eax
test ecx, ecx
jne 0x46aed3
mov eax, dword [edi + 8]
cmp eax, dword [ebp + esi*4 - 0x3c]
jle 0x46af10
mov dword [ebp + esi*4 - 0x3c], eax
jmp 0x46af10
xor eax, eax
inc eax
cmp esi, eax
jne 0x46af10
cmp dword [ebp - 0xa0], 3
jge 0x46aefb
mov eax, ecx
mov ecx, dword [edi]
sub ecx, dword [ebp - 0xbc]
add eax, eax
cmp ecx, dword [ebp + eax*8 - 0x38]
jle 0x46af10
mov dword [ebp + eax*8 - 0x38], ecx
jmp 0x46af10
mov eax, dword [edi + 8]
add ecx, ecx
sub eax, dword [ebp - 0xbc]
cmp eax, dword [ebp + ecx*8 - 0x38]
jle 0x46af10
mov dword [ebp + ecx*8 - 0x38], eax
mov eax, dword [ebp - 0xe8]
test eax, eax
jle 0x46af24
push eax
push 0
push edi
call dword [0x47c020]
mov edi, dword [ebp - 0x9c]
inc esi
mov dword [ebp - 0x104], esi
cmp esi, dword [ebp - 0xb4]
jl 0x46ae10
mov ecx, dword [ebp - 0x8c]
mov esi, dword [ebp - 0xd0]
dec ecx
cmp dword [ebp - 0x98], ecx
jl 0x46af5f
cmp dword [ebp - 0xfc], 0
jne 0x46af5f
test esi, esi
jne 0x46af6b
mov ecx, dword [ebp - 0xb8]
mov eax, dword [ebx + 0x24]
mov dword [ecx + 0x14], eax
mov eax, dword [ebx + 0x28]
sub eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0xa8]
cmp ecx, eax
push dword [ebx + 0x94]
cmovl ecx, eax
mov eax, dword [ebx + 0xa4]
add eax, ebx
mov dword [ebp - 0xa8], ecx
push eax
call fcn.00479573
mov edx, dword [ebp - 0x98]
inc esi
mov ecx, dword [ebp - 0xf8]
mov dword [ebp - 0xd0], esi
cmp esi, dword [ebp - 0xa0]
jl 0x46ac80
mov eax, dword [ebp - 0xdc]
mov edi, dword [ebp - 0xd4]
cmp dword [ebp - 0xf0], 0
jne 0x46b079
cmp dword [ebp - 0x114], 0
je 0x46b0e9
mov ecx, dword [ebp - 0x10c]
test edx, edx
jne 0x46b002
cmp dword [ebp - 0xa0], 3
jge 0x46b002
test ecx, ecx
jne 0x46b002
mov esi, dword [ebp - 0xe8]
add esi, eax
xor eax, eax
push eax
push eax
push eax
push eax
jmp 0x46b062
cmp dword [ebp - 0xc8], 3
je 0x46b00f
test ecx, ecx
je 0x46b01b
test edi, edi
jne 0x46b01b
mov edi, dword [ebx + 0x84]
neg edi
mov esi, dword [ebp - 0xe8]
push 0x2000
add esi, eax
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ebp - 0xe0]
push esi
push edi
add eax, edx
push eax
push ebx
call fcn.00478e0b
cmp dword [ebp - 0xa0], 2
jle 0x46b06b
xor eax, eax
xor ecx, ecx
push eax
inc ecx
push ecx
push eax
push eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x8c]
push esi
push edi
push eax
push ebx
call fcn.00478e0b
mov edx, dword [ebp - 0x98]
mov edi, esi
mov dword [ebp - 0xd4], edi
mov esi, dword [ebp - 0xe8]
add esi, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xa4]
add dword [ebp - 0x9c], ecx
mov eax, dword [ebp - 0x8c]
dec eax
mov dword [ebp - 0xe8], esi
cmp edx, eax
jge 0x46b0c3
add esi, dword [ebp - 0x100]
cmp dword [ebp - 0x114], 0
mov dword [ebp - 0xe8], esi
jne 0x46b0c3
add esi, dword [ebx + 0x84]
mov dword [ebp - 0xe8], esi
cmp esi, 0x870
ja 0x46b187
mov eax, dword [ebp - 0x8c]
inc edx
mov dword [ebp - 0x98], edx
cmp edx, eax
jl 0x46ac52
jmp 0x46b1a0
mov esi, dword [ebp - 0xe8]
test edx, edx
jle 0x46b151
mov ecx, dword [ebx + 0x84]
xor eax, eax
push 0x2000
push eax
push eax
push eax
mov eax, esi
sub eax, ecx
push eax
mov eax, edi
sub eax, ecx
push eax
mov eax, dword [ebp - 0xe0]
add eax, edx
push eax
push ebx
call fcn.00478e0b
cmp dword [ebp - 0xa0], 2
jle 0x46b174
mov ecx, dword [ebx + 0x84]
xor eax, eax
push eax
xor edx, edx
sub edi, ecx
inc edx
push edx
push eax
push eax
mov eax, esi
sub eax, ecx
push eax
mov eax, dword [ebp - 0x98]
add eax, dword [ebp - 0xe0]
add eax, dword [ebp - 0x8c]
push edi
push eax
jmp 0x46b16e
push 0x2001
xor ecx, ecx
mov eax, esi
sub eax, dword [ebx + 0x84]
push ecx
push ecx
push ecx
push eax
mov eax, dword [ebp - 0x108]
neg eax
push eax
push ecx
push ebx
call fcn.00478e0b
mov edx, dword [ebp - 0x98]
mov edi, esi
mov dword [ebp - 0xd4], edi
jmp 0x46b07f
mov ecx, dword [ebp - 0x120]
mov eax, dword [ebx + 0x38]
push 0x67
pop ebx
mov dword [ecx], eax
jmp 0x46ad1a
mov ecx, dword [ebp - 0xa4]
xor edx, edx
inc edx
cmp eax, edx
jg 0x46b2cd
cmp dword [ebp - 0xfc], 0
jne 0x46b2cd
cmp dword [ebp - 0x114], 0
jne 0x46b226
push 0
push ebx
call fcn.0047a22f
mov esi, eax
lea eax, [ebp - 0x50]
push eax
push esi
call fcn.0046d616
test byte [esi + 0xf4], 4
je 0x46b2b3
push esi
push ebx
call fcn.0047a319
cmp eax, 0xffffffff
je 0x46b2b3
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x60]
push 2
push 0
push eax
push eax
mov eax, dword [esi + 0xf0]
sub eax, dword [ebp - 0x44]
mov ecx, dword [esi + 0x34]
add eax, ecx
sub ecx, dword [ebx + 0x84]
push eax
push ecx
push dword [ebp - 0x90]
push ebx
call fcn.00478e0b
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0xa4]
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x64]
push 2
push 0
push eax
push eax
mov eax, dword [esi + 0xe8]
add eax, dword [ebp - 0x4c]
jmp 0x46b207
and dword [ebp - 0xa8], 0
test eax, eax
jle 0x46b226
xor edi, edi
mov eax, ecx
neg eax
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xbc], eax