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

Disassembly:
push 0xffffffffffffffff
push 0x5340b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5801d4]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], 0x54bb4c
mov dword [esp + 0x44], edi
cmp dword [esp + 0x60], edi
je 0x46e0bc
cmp dword [esi + 0x84], edi
je 0x46dce7
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
push edi
push edi
push edi
push edi
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
mov edx, dword [0x5a9d14]
push eax
lea ecx, [esp + 0x48]
push ecx
push edx
mov ecx, esi
call fcn.0046ccc0
mov ecx, dword [esp + 0x2c]
jmp 0x46de5f
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
push eax
push ecx
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0046aaf0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
push ecx
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x68]
push ecx
mov ecx, esi
call fcn.0046aaf0
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
cmp edi, ebx
je 0x46de7d
test edi, edi
jl 0x46de31
cmp edi, dword [esi + 0x15c]
jge 0x46de31
mov eax, dword [esi + 0x158]
lea edx, [edi + edi*2]
mov ecx, dword [eax + edx*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
add ecx, edx
sub eax, edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0046b030
inc edi
cmp edi, ebx
jge 0x46ddfd
lea eax, [edi + edi*2]
add eax, eax
add eax, eax
mov dword [esp + 0x54], eax
jmp 0x46dd94
mov eax, dword [esp + 0x54]
test eax, eax
jl 0x46de31
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 0x15c]
jge 0x46de31
mov ebx, dword [esp + 0x30]
mov ecx, eax
mov esi, dword [ecx + 0x158]
add esi, dword [esp + 0x54]
test ebx, ebx
jl 0x46de31
push 0xffffffffffffffff
lea edx, [ebx + 1]
push edx
lea ecx, [esp + 0x30]
call fcn.004614f0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi]
add dword [esp + 0x54], 0xc
lea eax, [ebx + ebx*2]
lea eax, [ecx + eax*4]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
inc edi
cmp edi, dword [esp + 0x5c]
mov dword [eax + 8], edx
jl 0x46dd90
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
test ebx, ebx
jl 0x46de31
cmp ebx, dword [esi + 0x15c]
jge 0x46de31
mov ecx, dword [esi + 0x158]
lea eax, [ebx + ebx*2]
mov edx, dword [ecx + eax*4 + 4]
mov ebx, dword [ecx + eax*4]
lea eax, [ecx + eax*4]
mov eax, dword [eax + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], edx
mov edi, eax
test eax, eax
jge 0x46de36
call fcn.004e0962
push 0xffffffffffffffff
inc eax
push eax
lea ecx, [esp + 0x30]
call fcn.004614f0
mov ecx, dword [esp + 0x2c]
lea edx, [edi + edi*2]
lea eax, [ecx + edx*4]
mov edx, dword [esp + 0x20]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], edx
xor edi, edi
mov ebx, dword [esp + 0x30]
cmp ebx, 2
jge 0x46de84
mov dword [esp + 0x44], 0xffffffff
cmp ecx, edi
je 0x46de7d
push ecx
call fcn.004d7727
add esp, 4
xor eax, eax
jmp 0x46e202
cmp dword [esi + 0x78], edi
je 0x46df3e
cmp dword [esi + 0x7c], edi
je 0x46df3e
cmp ebx, edi
mov dword [esp + 0x54], 1
jle 0x46de31
mov edx, dword [ecx + 4]
cmp edx, edi
mov eax, dword [ecx]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x24], ecx
jle 0x46decd
push edi
push eax
mov ecx, esi
call fcn.0046c5c0
cmp eax, edi
jle 0x46dec9
cmp eax, dword [esi + 0xe0]
jl 0x46dec9
xor eax, eax
mov dword [esp + 0x18], eax
cmp ebx, edi
mov dword [esp + 0x60], edi
jle 0x46e1e7
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], edx
mov ecx, edi
test ecx, ecx
jl 0x46de31
cmp ecx, dword [esp + 0x30]
jge 0x46de31
cmp dword [esp + 0x54], 0
mov esi, dword [edx + 4]
mov edi, dword [edx + 8]
mov ebx, dword [edx]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], edi
je 0x46e026
test esi, esi
jne 0x46df44
mov ecx, dword [esp + 0x14]
push esi
push ebx
call fcn.0046c5c0
test eax, eax
jle 0x46df35
mov edx, dword [esp + 0x14]
cmp eax, dword [edx + 0xe0]
jl 0x46df35
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x46e01e
mov dword [esp + 0x54], edi
jmp 0x46decd
cmp dword [esp + 0x18], 0
jle 0x46e026
mov eax, dword [esp + 0x18]
cdq
idiv dword [0x589074]
xor edi, edi
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x88], edi
jne 0x46dfb0
mov edx, eax
mov esi, dword [edx + 0x108]
xor eax, eax
cdq
idiv esi
mov eax, esi
sub eax, edx
cdq
idiv dword [0x589074]
cmp ecx, eax
jl 0x46dfb0
sub ecx, eax
mov eax, dword [esp + 0x14]
mov esi, dword [eax + 0x10c]
mov eax, ecx
cdq
idiv esi
mov edi, 1
imul esi, eax
sub ecx, esi
test eax, eax
jle 0x46dfa8
lea edi, [eax + 1]
test ecx, ecx
jle 0x46dfb6
add edi, ecx
jmp 0x46dfb6
test ecx, ecx
jle 0x46dfb6
mov edi, ecx
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d76f8
mov esi, eax
mov eax, dword [esp + 0x1c]
cdq
idiv dword [0x589074]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
push eax
push 0
push 0
push esi
call fcn.00468aa0
cmp dword [esp + 0x4c], 0
je 0x46e00b
mov ecx, dword [esp + 0x4c]
lea eax, [edi + edi]
push eax
lea edx, [ecx + ebp*2]
push esi
push edx
call fcn.00517e10
add esp, 0xc
push esi
call fcn.004d7727
mov esi, dword [esp + 0x24]
add esp, 4
add ebp, edi
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
test eax, eax
je 0x46e05a
mov eax, dword [esp + 0x14]
shl ebx, 5
add ebx, dword [eax + 0x2e0]
mov eax, dword [esp + 0x4c]
mov ebx, dword [ebx + 8]
lea ecx, [edi + edi]
push ecx
lea edx, [ebx + esi*2]
push edx
lea ecx, [eax + ebp*2]
push ecx
call fcn.00517e10
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x58]
add esp, 0xc
mov esi, dword [esp + 0x30]
lea edx, [esi - 1]
add ebp, edi
cmp ecx, edx
jge 0x46e088
test eax, eax
je 0x46e0b0
mov edx, dword [esp + 0x68]
cmp edx, 1
jne 0x46e0a5
mov edx, 0xd
mov word [eax + ebp*2], dx
inc ebp
mov edx, 0xa
mov word [eax + ebp*2], dx
inc ebp
mov edx, dword [esp + 0x5c]
inc ecx
add edx, 0xc
cmp ecx, esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edx
jl 0x46dee7
jmp 0x46e1e7
test edx, edx
je 0x46e07e
mov edx, 0xd
jmp 0x46e083
cmp dword [esp + 0x68], 1
jne 0x46e087
add ebp, 2
jmp 0x46e088
mov eax, dword [esp + 0x54]
cmp eax, dword [esp + 0x5c]
mov ecx, eax
mov dword [esp + 0x60], ecx
jg 0x46e1e7
mov ebx, dword [esp + 0x4c]
shl eax, 5
mov dword [esp + 0x68], eax
jmp 0x46e0e0
mov esi, dword [esp + 0x14]
mov esi, dword [esi + 0x2e0]
mov edi, dword [eax + esi + 8]
mov edx, dword [esp + 0x50]
add eax, esi
mov eax, dword [eax]
lea esi, [eax - 1]
cmp ecx, dword [esp + 0x54]
jne 0x46e106
lea edi, [edi + edx*2]
sub esi, edx
jmp 0x46e110
cmp ecx, dword [esp + 0x5c]
jne 0x46e110
mov esi, dword [esp + 0x58]
cmp dword [esp + 0x64], 0
je 0x46e160
test esi, esi
jle 0x46e13c
jmp 0x46e120
movzx eax, word [edi]
push eax
call fcn.005191b9
add esp, 4
test eax, eax
je 0x46e15c
dec esi
add edi, 2
test esi, esi
jg 0x46e120
mov ecx, dword [esp + 0x60]
cmp ecx, dword [esp + 0x54]
jle 0x46e1a9
test ebx, ebx
je 0x46e1a6
mov edx, 0xd
mov word [ebx + ebp*2], dx
inc ebp
mov eax, 0xa
mov word [ebx + ebp*2], ax
inc ebp
jmp 0x46e1a9
mov ecx, dword [esp + 0x60]
test esi, esi
jle 0x46e13c
test ebx, ebx
jne 0x46e16d
inc ebp
add ebp, esi
jmp 0x46e1cd
test ebp, ebp
jle 0x46e18d
movzx ecx, word [ebx + ebp*2 - 2]
push ecx
call fcn.005191b9
add esp, 4
test eax, eax
jne 0x46e18d
mov edx, 0x20
mov word [ebx + ebp*2], dx
inc ebp
lea eax, [esi + esi]
push eax
lea ecx, [ebx + ebp*2]
push edi
push ecx
call fcn.00517e10
mov ecx, dword [esp + 0x6c]
add esp, 0xc
add ebp, esi
jmp 0x46e1cd
add ebp, 2
cmp dword [esp + 0x64], 0
je 0x46e1cd
test ebx, ebx
je 0x46e1ca
mov edx, 0xd
mov word [ebx + ebp*2], dx
inc ebp
mov eax, 0xa
mov word [ebx + ebp*2], ax
inc ebp
jmp 0x46e1cd
add ebp, 2
mov eax, dword [esp + 0x68]
inc ecx
add eax, 0x20
cmp ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
jle 0x46e0e0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], 0xffffffff
test eax, eax
je 0x46e200
push eax
call fcn.004d7727
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x20