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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x62bdc4]
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, edx
push edi
push esi
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x60], ebx
sub eax, edx
mov dword [esp + 0x24], esi
mov dword [0x4f04a4], eax
call fcn.00494370
xor edi, edi
add esp, 4
mov dword [0x62bdc4], edi
mov dword [0x62bdc0], edi
call fcn.0048db40
xor ebp, ebp
mov dword [0x4f0450], eax
mov dword [esp + 0x38], 0x518d40
mov dword [esp + 0x30], 0x5203a8
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov al, byte [ebp + 0x50ef87]
mov edx, dword [esp + 0x38]
test al, al
mov dword [esp + 0x48], edx
je 0x46dbe3
mov al, byte [ebp + 0x50f10f]
test al, al
je 0x46d751
mov al, byte [0x4ce171]
test al, al
je 0x46d751
push esi
call fcn.00494230
mov ecx, dword [0x4f04a4]
mov eax, dword [esi + 0x1c]
add ecx, eax
add esp, 4
mov dword [0x62bdc4], ecx
mov edx, dword [esi + 0x20]
mov dword [0x62bdc0], edx
mov edx, ebx
mov ecx, 7
call fcn.0045bb70
mov eax, dword [0x62bdc4]
mov edx, dword [esi + 0x1c]
sub eax, edx
push esi
mov dword [0x4f04a4], eax
call fcn.00494370
add esp, 4
xor eax, eax
mov dword [0x62bdc4], eax
mov dword [0x62bdc0], eax
jmp 0x46dbe3
mov eax, dword [edi + 0x50efbc]
mov ecx, dword [0x519170]
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x46dbe3
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ebx, dword [0x50efe0]
mov ecx, dword [0x519380]
cmp eax, ebx
mov ebx, dword [edi + 0x50efdc]
setae byte [esp + 0x13]
cmp ebx, ecx
mov dword [esp + 0x14], ebx
jg 0x46dbb1
mov eax, ebx
neg eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x3c], eax
jmp 0x46d7ac
mov edx, dword [esp + 0x64]
mov ecx, dword [edx]
add edx, 4
test ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x64], edx
je 0x46db70
mov edx, dword [eax - 8]
test edx, edx
jne 0x46d7df
mov edx, dword [eax - 4]
test edx, edx
jne 0x46d7df
cmp dword [eax], 0
jne 0x46d7df
mov edx, dword [eax + 4]
test edx, edx
je 0x46db70
mov edi, dword [0x4f0470]
lea ebp, [ecx*8]
sub ebp, ecx
shl ebp, 2
mov dword [esp + 0x60], ebp
mov eax, dword [edi + ebp + 0x10]
lea esi, [edi + ebp]
test eax, eax
jne 0x46d93b
mov edx, dword [0x4f0498]
inc edx
mov dword [0x4f0498], edx
mov edx, dword [0x4f0464]
test edx, edx
jne 0x46d8e2
mov eax, dword [0x4f0450]
add eax, 0xfffff060
xor bl, bl
mov dword [esp + 0x24], eax
mov ecx, dword [0x4f046c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x34], eax
jle 0x46d8c4
mov ecx, dword [eax + edi + 0x14]
cmp ecx, 0xffffffff
je 0x46d8aa
mov ebp, dword [esp + 0x24]
cmp dword [eax + edi + 8], ebp
ja 0x46d8aa
mov edi, dword [0x4f0458]
mov bl, 1
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [0x4f0470]
mov edi, dword [0x4f0458]
mov edx, dword [eax + ecx + 0x10]
mov ecx, dword [0x4f0464]
mov dword [edi + ecx*8], edx
mov edx, dword [0x4f0470]
mov dword [eax + edx + 0x10], 0
mov ecx, dword [0x4f0470]
mov dword [eax + ecx + 0x14], 0xffffffff
mov edx, dword [0x4f0464]
mov edi, dword [0x4f0470]
inc edx
mov dword [0x4f0464], edx
mov ebp, dword [esp + 0x34]
mov ecx, dword [0x4f046c]
inc ebp
add eax, 0x1c
cmp ebp, ecx
mov dword [esp + 0x34], ebp
jl 0x46d843
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x24]
add ecx, 0x2ee
test bl, bl
mov dword [esp + 0x24], ecx
je 0x46d82f
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov eax, dword [0x4f0458]
dec edx
mov dword [0x4f0464], edx
mov edx, dword [eax + edx*8 + 4]
mov dword [esi + 0x14], edx
mov eax, dword [0x4f0458]
mov edx, dword [0x4f0464]
mov eax, dword [eax + edx*8]
mov dword [esi + 0x10], eax
mov edx, dword [0x4f0450]
or eax, 0xffffffff
mov dword [esi + 8], edx
mov byte [esi + 0x18], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi], eax
mov edx, 0xf
mov dword [esi + 4], eax
call fcn.0046dcd0
mov ecx, dword [0x4f0470]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x1c]
jmp 0x46d956
mov dl, byte [eax + 0x38]
test dl, dl
je 0x46d950
call fcn.0046e180
call fcn.0046df60
mov ecx, dword [esp + 0x1c]
inc dword [0x4f049c]
mov edx, dword [0x4f0450]
mov dword [esi + 8], edx
mov eax, dword [0x4f0450]
cmp eax, dword [esi + 0xc]
jbe 0x46d973
xor edx, edx
mov dl, byte [esi + 0x18]
call fcn.0046dcd0
mov al, byte [esp + 0x13]
test al, al
jne 0x46da50
cmp ebx, dword [0x50f060]
jae 0x46da50
mov ecx, dword [0x519390]
mov edx, dword [0x519394]
mov dword [esp + 0x8c], 0x4ce180
mov dword [esp + 0x94], 0
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x98], eax
add ecx, edx
mov edx, dword [esi + 0x14]
add eax, 0x80
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
add ecx, 0x20
mov dword [0x4ce184], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x20]
add eax, 0x20
mov dword [0x4ce18c], eax
mov dword [esp + 0x80], ecx
mov ecx, dword [esi + 0x10]
xor eax, eax
mov al, byte [esi + 0x1a]
mov dword [esp + 0x88], ecx
mov cl, byte [0x4d124c]
lea edx, [esp + 0x98]
cmp cl, 5
mov dword [esp + 0x84], edx
mov dword [esp + 0x90], eax
jne 0x46da3b
lea ecx, [esp + 0x80]
call dword [eax*4 + 0x62bda0]
jmp 0x46db70
lea edx, [esp + 0x80]
push edx
call fcn.004952b0
add esp, 4
jmp 0x46db70
mov eax, dword [esi + 0x14]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x50], eax
add eax, 0x20
mov dword [esp + 0x4c], 0
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], 0x80
test edx, edx
lea ecx, [edx + 0x80]
lea eax, [edi + 0x20]
jge 0x46da8d
mov edx, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x4c], edx
test edi, edi
jge 0x46da9d
mov edx, dword [esp + 0x50]
sub edx, edi
xor edi, edi
mov dword [esp + 0x50], edx
mov edx, dword [0x519380]
cmp ecx, edx
jle 0x46dab7
mov ebp, edx
sub ebp, ecx
mov ecx, edx
add ebp, 0x80
mov dword [esp + 0x54], ebp
cmp eax, dword [0x519170]
jle 0x46dad5
mov edx, dword [0x62bdb8]
mov ebp, edx
sub ebp, eax
mov eax, dword [esp + 0x58]
add eax, ebp
mov dword [esp + 0x58], eax
mov eax, edx
cmp ebx, ecx
jge 0x46db6c
cmp edi, eax
jge 0x46db6c
mov edx, dword [0x519394]
mov dword [esp + 0x7c], 0
add eax, edx
add edi, edx
mov dword [esp + 0xb4], eax
mov eax, dword [0x519390]
add ecx, eax
add ebx, eax
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
mov ecx, dword [esi + 0x10]
lea edx, [esp + 0xa8]
xor eax, eax
mov al, byte [esi + 0x1a]
mov dword [esp + 0x70], ecx
mov cl, byte [0x4d124c]
mov dword [esp + 0x6c], edx
lea edx, [esp + 0x4c]
cmp cl, 5
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
jne 0x46db5f
lea ecx, [esp + 0x68]
call dword [eax*4 + 0x62bda0]
jmp 0x46db6c
lea eax, [esp + 0x68]
push eax
call fcn.004952b0
add esp, 4
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [0x519380]
add ebx, 0x80
sub esi, 0x80
add eax, 0x10
cmp ebx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], eax
jle 0x46d7a8
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
mov ebx, dword [esp + 0x28]
mov ecx, dword [0x519170]
add eax, 0x20
add edx, 0x20
add ebx, 0x80
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], ebx
jl 0x46d771
mov ebx, dword [esp + 0x5c]
push esi
call fcn.00494230
mov ecx, dword [0x4f04a4]
mov eax, dword [esi + 0x1c]
add ecx, eax
lea eax, [ebp + 7]
mov dword [0x62bdc4], ecx
mov edx, dword [esi + 0x20]
push ebx
push eax
mov dword [0x62bdc0], edx
call fcn.0045f6c0
mov ecx, dword [0x62bdc4]
mov edx, dword [esi + 0x1c]
sub ecx, edx
push esi
mov dword [0x4f04a4], ecx
call fcn.00494370
mov ecx, dword [esp + 0x40]
xor eax, eax
mov dword [0x62bdc4], eax
mov dword [0x62bdc0], eax
mov eax, dword [esp + 0x48]
add esp, 0x10
sub ecx, 0x1000
sub eax, 0x400
dec ebp
sub edi, 4
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], eax
lea edx, [ebp + 7]
mov dword [esp + 0x40], ebp
test edx, edx
mov dword [esp + 0x44], edi
jge 0x46d6d0
push esi
call fcn.00494230
mov eax, dword [0x4f04a4]
mov ecx, dword [esi + 0x1c]
add esp, 4
add eax, ecx
mov dword [0x62bdc4], eax
mov ecx, dword [esi + 0x20]
pop edi
pop esi
pop ebp
mov dword [0x62bdc0], ecx
pop ebx
add esp, 0xa8
ret