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

Disassembly:
sub esp, 0xa8
mov eax, dword [0x6087a4]
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
push esi
mov edx, dword [ebx + 0x1c]
push edi
sub eax, edx
push ebx
mov dword [esp + 0x60], ebp
mov dword [esp + 0x20], ebx
mov dword [0x4f5ea0], eax
call fcn.00495ee0
xor esi, esi
add esp, 4
mov dword [0x6087a4], esi
mov dword [0x6087a0], esi
call fcn.0048ea90
xor edi, edi
mov dword [0x4f5e48], eax
mov dword [esp + 0x38], 0x518a00
mov dword [esp + 0x30], 0x51ff68
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], edi
mov al, byte [edi + 0x514c47]
mov edx, dword [esp + 0x38]
test al, al
mov dword [esp + 0x48], edx
je 0x46e7ee
mov al, byte [edi + 0x514dcf]
test al, al
je 0x46e311
mov al, byte [0x4d1af0]
test al, al
je 0x46e311
push ebx
call fcn.00495da0
mov ecx, dword [0x4f5ea0]
mov eax, dword [ebx + 0x1c]
add ecx, eax
add esp, 4
mov dword [0x6087a4], ecx
mov edx, dword [ebx + 0x20]
mov dword [0x6087a0], edx
mov edx, ebp
mov ecx, 7
call fcn.0045c2c0
mov eax, dword [0x6087a4]
mov edx, dword [ebx + 0x1c]
sub eax, edx
push ebx
mov dword [0x4f5ea0], eax
call fcn.00495ee0
add esp, 4
xor eax, eax
mov dword [0x6087a4], eax
mov dword [0x6087a0], eax
jmp 0x46e7ee
mov eax, dword [esi + 0x514c7c]
mov ecx, dword [0x518e30]
cmp eax, ecx
mov dword [esp + 0x18], eax
jge 0x46e7ee
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x514ca0]
mov ebp, dword [0x518f40]
cmp eax, ecx
sbb ecx, ecx
inc ecx
mov byte [esp + 0x13], cl
mov ecx, dword [esi + 0x514c9c]
cmp ecx, ebp
mov dword [esp + 0x14], ecx
jg 0x46e7bc
mov eax, dword [esp + 0x28]
neg ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x3c], eax
jmp 0x46e370
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edx]
add edx, 4
test ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x64], edx
je 0x46e777
mov edx, dword [eax - 8]
test edx, edx
jne 0x46e3a3
mov edx, dword [eax - 4]
test edx, edx
jne 0x46e3a3
cmp dword [eax], 0
jne 0x46e3a3
mov edx, dword [eax + 4]
test edx, edx
je 0x46e777
mov edi, dword [0x4f5e68]
mov ebp, ecx
shl ebp, 3
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 0x46e4fa
mov edx, dword [0x4f5e94]
inc edx
mov dword [0x4f5e94], edx
mov edx, dword [0x4f5e5c]
test edx, edx
jne 0x46e49d
mov eax, dword [0x4f5e48]
add eax, 0xfffff060
xor bl, bl
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [0x4f5e64], eax
mov dword [esp + 0x34], eax
jle 0x46e488
mov ecx, dword [edi + eax + 0x14]
cmp ecx, 0xffffffff
je 0x46e46a
mov ebp, dword [esp + 0x20]
cmp dword [edi + eax + 8], ebp
ja 0x46e46a
mov edi, dword [0x4f5e50]
mov bl, 1
mov dword [edi + edx*8 + 4], ecx
mov ecx, dword [0x4f5e68]
mov edi, dword [0x4f5e50]
mov edx, dword [ecx + eax + 0x10]
mov ecx, dword [0x4f5e5c]
mov dword [edi + ecx*8], edx
mov edx, dword [0x4f5e68]
mov dword [edx + eax + 0x10], 0
mov ecx, dword [0x4f5e68]
mov dword [ecx + eax + 0x14], 0xffffffff
mov edx, dword [0x4f5e5c]
mov edi, dword [0x4f5e68]
inc edx
mov dword [0x4f5e5c], edx
mov ebp, dword [esp + 0x34]
mov ecx, dword [0x4f5e64]
inc ebp
add eax, 0x1c
cmp ebp, ecx
mov dword [esp + 0x34], ebp
jl 0x46e403
mov ebp, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
add eax, 0x2ee
test bl, bl
mov dword [esp + 0x20], eax
je 0x46e3f1
mov eax, dword [0x4f5e50]
dec edx
mov dword [0x4f5e5c], edx
mov edx, dword [eax + edx*8 + 4]
mov dword [esi + 0x14], edx
mov eax, dword [0x4f5e50]
mov edx, dword [0x4f5e5c]
mov eax, dword [eax + edx*8]
mov dword [esi + 0x10], eax
mov edx, dword [0x4f5e48]
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.0046e8d0
mov ecx, dword [0x4f5e68]
mov ebx, dword [esp + 0x1c]
lea esi, [ecx + ebp]
mov ecx, dword [esp + 0x2c]
jmp 0x46e567
mov dl, byte [eax + 0x38]
test dl, dl
je 0x46e561
mov al, byte [0x4f5e90]
test al, al
je 0x46e558
mov eax, dword [0x4f5e58]
xor edi, edi
test eax, eax
jle 0x46e535
mov edx, dword [0x4f5e54]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x46e52b
push eax
call fcn.00496130
add esp, 4
mov eax, dword [0x4f5e58]
inc edi
cmp edi, eax
jl 0x46e515
mov eax, dword [0x4f5e4c]
test eax, eax
je 0x46e547
push eax
call fcn.00496130
add esp, 4
push 3
call fcn.00498dc0
add esp, 4
mov byte [0x4f5e90], 0
call fcn.0046eb70
mov ecx, dword [esp + 0x2c]
inc dword [0x4f5e98]
mov eax, dword [0x4f5e48]
mov dword [esi + 8], eax
mov edx, dword [0x4f5e48]
cmp edx, dword [esi + 0xc]
jbe 0x46e584
xor edx, edx
mov dl, byte [esi + 0x18]
call fcn.0046e8d0
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x14]
test al, al
jne 0x46e657
cmp ecx, dword [0x514d20]
jae 0x46e657
mov eax, dword [0x518f50]
mov edx, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [0x518f54]
mov dword [esp + 0x98], eax
add ecx, edx
add eax, 0x80
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esi + 0x14]
add ecx, 0x20
mov dword [0x4d1b04], eax
mov dword [esp + 0xa4], ecx
mov ecx, dword [esi + 0x14]
add ecx, 0x20
xor eax, eax
mov dword [0x4d1b0c], ecx
mov al, byte [esi + 0x1a]
mov cl, byte [0x4d4bbc]
mov esi, dword [esi + 0x10]
lea edx, [esp + 0x98]
cmp cl, 5
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edx
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], 0x4d1b00
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], 0
jne 0x46e64a
lea ecx, [esp + 0x80]
call dword [eax*4 + 0x608780]
jmp 0x46e777
lea eax, [esp + 0x80]
push eax
jmp 0x46e76f
mov eax, dword [esi + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x50], eax
add eax, 0x20
mov ebx, ecx
mov edx, edi
add ecx, 0x80
mov dword [esp + 0x58], eax
mov dword [esp + 0x4c], 0
test ebp, ebp
mov dword [esp + 0x54], 0x80
lea eax, [edx + 0x20]
jge 0x46e698
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x4c], ebx
xor ebx, ebx
test edx, edx
jge 0x46e6a8
mov edi, dword [esp + 0x50]
sub edi, edx
mov dword [esp + 0x50], edi
xor edi, edi
mov edx, dword [0x518f40]
cmp ecx, edx
jle 0x46e6c2
mov ebp, edx
sub ebp, ecx
mov ecx, edx
add ebp, 0x80
mov dword [esp + 0x54], ebp
cmp eax, dword [0x518e30]
jle 0x46e6e0
mov edx, dword [0x608798]
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 0x46e777
cmp edi, eax
jge 0x46e777
mov edx, dword [0x518f54]
mov dword [esp + 0x7c], 0
add eax, edx
add edi, edx
mov dword [esp + 0xb4], eax
mov eax, dword [0x518f50]
add ecx, eax
add ebx, eax
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x4c]
xor eax, eax
mov dword [esp + 0x74], ecx
mov al, byte [esi + 0x1a]
mov cl, byte [0x4d4bbc]
mov esi, dword [esi + 0x10]
lea edx, [esp + 0xa8]
cmp cl, 5
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x78], eax
jne 0x46e76a
lea ecx, [esp + 0x68]
call dword [eax*4 + 0x608780]
jmp 0x46e777
lea edx, [esp + 0x68]
push edx
call fcn.004970e0
add esp, 4
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov edx, dword [0x518f40]
add ecx, 0x80
sub edi, 0x80
add eax, 0x10
cmp ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x3c], eax
jle 0x46e368
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x28]
mov ecx, dword [0x518e30]
add eax, 0x20
add edx, 0x20
add ebp, 0x80
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x28], ebp
jl 0x46e331
mov ebp, dword [esp + 0x5c]
push ebx
call fcn.00495da0
mov eax, dword [0x4f5ea0]
mov edx, dword [ebx + 0x1c]
add esp, 4
add eax, edx
mov dword [0x6087a4], eax
mov ecx, dword [ebx + 0x20]
lea edx, [edi + 7]
push ebp
push edx
mov dword [0x6087a0], ecx
call fcn.0045fe00
mov eax, dword [0x6087a4]
mov ecx, dword [ebx + 0x1c]
add esp, 8
sub eax, ecx
mov dword [0x4f5ea0], eax
push ebx
call fcn.00495ee0
mov ecx, dword [esp + 0x34]
xor eax, eax
mov dword [0x6087a4], eax
mov dword [0x6087a0], eax
mov eax, dword [esp + 0x3c]
add esp, 4
sub ecx, 0x1000
sub eax, 0x400
dec edi
mov dword [esp + 0x30], ecx
sub esi, 4
mov dword [esp + 0x38], eax
lea ecx, [edi + 7]
mov dword [esp + 0x40], edi
test ecx, ecx
mov dword [esp + 0x44], esi
jge 0x46e290
push ebx
call fcn.00495da0
mov edx, dword [0x4f5ea0]
mov eax, dword [ebx + 0x1c]
add esp, 4
add edx, eax
mov dword [0x6087a4], edx
mov eax, dword [ebx + 0x20]
pop edi
pop esi
pop ebp
mov dword [0x6087a0], eax
pop ebx
add esp, 0xa8
ret