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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x53b070]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
push edi
test esi, esi
je 0x46a333
test ebx, ebx
je 0x46a333
test ecx, ecx
je 0x46a333
movzx eax, word [esi + 0x40e]
test al, 2
je 0x46a095
push ecx
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.004812ba
add esp, 0x1c
jmp 0x46a338
push 0x30
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004cd4b0
movzx ecx, byte [esi + 0x2dd]
add esp, 0xc
mov byte [esi + 0x41f], 1
mov dword [esp + 0x1c], ecx
push 5
pop eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x10]
lea edx, [eax + 5]
mov al, byte [esi + 0x2d9]
add edx, ecx
mov dword [esp + 0x20], edx
cmp al, 1
jne 0x46a161
movzx eax, word [esi + 0x2d4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46a0f7
mov edi, 0xffffff40
jmp 0x46a30a
movzx ecx, word [esi + 0x40e]
test cl, 1
je 0x46a11e
add edx, eax
mov ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
cmp eax, 0x10
jbe 0x46a122
mov edi, 0xffffff7c
jmp 0x46a30a
mov ecx, dword [esp + 0x34]
lea eax, [edx - 4]
xor edx, edx
div dword [esp + 0x14]
mov dword [esp + 0x24], edx
test edx, edx
je 0x46a140
movzx eax, word [esi + 0x2d4]
sub eax, edx
mov dword [esp + 0x24], eax
movzx eax, word [esi + 0x2d4]
sub eax, edx
test edx, edx
cmove eax, edx
mov edx, dword [esp + 0x20]
inc edx
add edx, eax
mov al, byte [esi + 0x2d9]
mov dword [esp + 0x20], edx
jmp 0x46a165
mov ecx, dword [esp + 0x34]
cmp al, 2
jne 0x46a18d
cmp byte [esi + 0x2d8], 9
push 8
pop eax
cmovne ecx, eax
movzx eax, word [esi + 0x2d6]
sub eax, dword [esp + 0x1c]
add edx, eax
mov dword [esp + 0x34], ecx
add edx, ecx
mov dword [esp + 0x20], edx
cmp edx, dword [ebp + 8]
ja 0x46a114
test ecx, ecx
je 0x46a1da
cmp ecx, 0x10
jbe 0x46a1b6
call fcn.0049945a
mov dword [esp + 0x38], eax
test eax, eax
jne 0x46a1b0
push 0xffffffffffffff83
pop edi
jmp 0x46a30e
mov ecx, dword [esp + 0x34]
jmp 0x46a1be
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], eax
push ecx
mov ecx, dword [esi + 0x78]
mov edx, eax
call fcn.0049a67c
mov edi, eax
pop ecx
test edi, edi
jne 0x46a30a
mov ecx, dword [esp + 0x2c]
jmp 0x46a1dd
push 5
pop ecx
mov eax, dword [esp + 0x20]
push ecx
sub eax, ecx
mov ecx, ebx
push esi
push dword [ebp + 0x14]
movzx edx, ax
mov word [esp + 0x3c], ax
call fcn.0046509e
mov ecx, dword [esp + 0x40]
add esp, 0xc
test ecx, ecx
je 0x46a22c
push 0x10
pop eax
cmp ecx, eax
cmovb eax, ecx
push eax
mov eax, dword [esp + 0x2c]
push dword [esp + 0x3c]
add eax, ebx
push eax
call fcn.004cc9b0
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jmp 0x46a230
mov eax, dword [esp + 0x28]
push dword [ebp + 0x10]
add eax, ebx
push dword [esp + 0x1c]
push eax
call fcn.004cc9b0
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ecx, edx
cmp dword [ebp + 0x14], 0x16
mov dword [esp + 0x28], ecx
mov byte [esi + 0x41f], 2
jne 0x46a286
cmp dword [ebp + 0x18], 0
je 0x46a286
mov eax, dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x34]
add eax, edx
mov edx, ebx
push eax
call fcn.00465053
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x46a30a
mov ecx, dword [esp + 0x28]
mov al, byte [esi + 0x2d9]
cmp al, 1
jne 0x46a2b0
mov edx, dword [esp + 0x1c]
add edx, ecx
mov ecx, dword [esp + 0x24]
add edx, ebx
lea eax, [ecx + 1]
push eax
push ecx
push edx
call fcn.004cd4b0
mov al, byte [esi + 0x2d9]
add esp, 0xc
mov byte [esi + 0x41f], 3
cmp al, 2
je 0x46a2e7
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
add eax, ecx
push 0
push 0
push dword [ebp + 0x14]
add eax, ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x40]
add eax, ebx
push eax
push esi
call dword [esi + 0x1b8]
add esp, 0x20
mov edi, eax
test edi, edi
jne 0x46a30a
mov edx, dword [esp + 0x2c]
push ecx
push dword [esp + 0x34]
add edx, ebx
mov byte [esi + 0x41f], 4
push edx
mov ecx, esi
call fcn.00468800
add esp, 0xc
mov edi, eax
mov eax, dword [esp + 0x38]
test edi, edi
mov byte [esi + 0x41f], 0
cmove edi, dword [esp + 0x20]
test eax, eax
je 0x46a32f
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x46a32f
mov ecx, eax
call fcn.0049946f
mov eax, edi
jmp 0x46a338
mov eax, 0xffffff53
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004caa72
mov esp, ebp
pop ebp
ret