Function at 0x469fbc
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 0x46a2bd
test ebx, ebx
je 0x46a2bd
test ecx, ecx
je 0x46a2bd
movzx eax, word [esi + 0x40e]
test al, 2
je 0x46a01f
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.00481244
add esp, 0x1c
jmp 0x46a2c2
push 0x30
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004cd440
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 0x46a0eb
movzx eax, word [esi + 0x2d4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46a081
mov edi, 0xffffff40
jmp 0x46a294
movzx ecx, word [esi + 0x40e]
test cl, 1
je 0x46a0a8
add edx, eax
mov ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
cmp eax, 0x10
jbe 0x46a0ac
mov edi, 0xffffff7c
jmp 0x46a294
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 0x46a0ca
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 0x46a0ef
mov ecx, dword [esp + 0x34]
cmp al, 2
jne 0x46a117
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 0x46a09e
test ecx, ecx
je 0x46a164
cmp ecx, 0x10
jbe 0x46a140
call fcn.004993e8
mov dword [esp + 0x38], eax
test eax, eax
jne 0x46a13a
push 0xffffffffffffff83
pop edi
jmp 0x46a298
mov ecx, dword [esp + 0x34]
jmp 0x46a148
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], eax
push ecx
mov ecx, dword [esi + 0x78]
mov edx, eax
call fcn.0049a60a
mov edi, eax
pop ecx
test edi, edi
jne 0x46a294
mov ecx, dword [esp + 0x2c]
jmp 0x46a167
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.00465028
mov ecx, dword [esp + 0x40]
add esp, 0xc
test ecx, ecx
je 0x46a1b6
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.004cc940
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jmp 0x46a1ba
mov eax, dword [esp + 0x28]
push dword [ebp + 0x10]
add eax, ebx
push dword [esp + 0x1c]
push eax
call fcn.004cc940
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 0x46a210
cmp dword [ebp + 0x18], 0
je 0x46a210
mov eax, dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x34]
add eax, edx
mov edx, ebx
push eax
call fcn.00464fdd
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x46a294
mov ecx, dword [esp + 0x28]
mov al, byte [esi + 0x2d9]
cmp al, 1
jne 0x46a23a
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.004cd440
mov al, byte [esi + 0x2d9]
add esp, 0xc
mov byte [esi + 0x41f], 3
cmp al, 2
je 0x46a271
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 0x46a294
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.0046878a
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 0x46a2b9
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x46a2b9
mov ecx, eax
call fcn.004993fd
mov eax, edi
jmp 0x46a2c2
mov eax, 0xffffff53
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ca9ff
mov esp, ebp
pop ebp
ret