Function at 0x469fa1
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 0x46a2a2
test ebx, ebx
je 0x46a2a2
test ecx, ecx
je 0x46a2a2
movzx eax, word [esi + 0x40e]
test al, 2
je 0x46a004
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.00481229
add esp, 0x1c
jmp 0x46a2a7
push 0x30
xor edi, edi
lea eax, [esp + 0x20]
push edi
push eax
call fcn.004cd420
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 0x46a0d0
movzx eax, word [esi + 0x2d4]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x46a066
mov edi, 0xffffff40
jmp 0x46a279
movzx ecx, word [esi + 0x40e]
test cl, 1
je 0x46a08d
add edx, eax
mov ecx, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x20], edx
cmp eax, 0x10
jbe 0x46a091
mov edi, 0xffffff7c
jmp 0x46a279
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 0x46a0af
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 0x46a0d4
mov ecx, dword [esp + 0x34]
cmp al, 2
jne 0x46a0fc
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 0x46a083
test ecx, ecx
je 0x46a149
cmp ecx, 0x10
jbe 0x46a125
call fcn.004993ca
mov dword [esp + 0x38], eax
test eax, eax
jne 0x46a11f
push 0xffffffffffffff83
pop edi
jmp 0x46a27d
mov ecx, dword [esp + 0x34]
jmp 0x46a12d
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], eax
push ecx
mov ecx, dword [esi + 0x78]
mov edx, eax
call fcn.0049a5ec
mov edi, eax
pop ecx
test edi, edi
jne 0x46a279
mov ecx, dword [esp + 0x2c]
jmp 0x46a14c
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.0046500d
mov ecx, dword [esp + 0x40]
add esp, 0xc
test ecx, ecx
je 0x46a19b
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.004cc920
mov eax, dword [esp + 0x34]
add esp, 0xc
add eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
jmp 0x46a19f
mov eax, dword [esp + 0x28]
push dword [ebp + 0x10]
add eax, ebx
push dword [esp + 0x1c]
push eax
call fcn.004cc920
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 0x46a1f5
cmp dword [ebp + 0x18], 0
je 0x46a1f5
mov eax, dword [esp + 0x2c]
mov ecx, esi
push dword [esp + 0x34]
add eax, edx
mov edx, ebx
push eax
call fcn.00464fc2
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x46a279
mov ecx, dword [esp + 0x28]
mov al, byte [esi + 0x2d9]
cmp al, 1
jne 0x46a21f
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.004cd420
mov al, byte [esi + 0x2d9]
add esp, 0xc
mov byte [esi + 0x41f], 3
cmp al, 2
je 0x46a256
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 0x46a279
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.0046876f
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 0x46a29e
lea ecx, [esp + 0x3c]
cmp eax, ecx
je 0x46a29e
mov ecx, eax
call fcn.004993df
mov eax, edi
jmp 0x46a2a7
mov eax, 0xffffff53
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ca9dc
mov esp, ebp
pop ebp
ret