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

Disassembly:
push 0xffffffffffffffff
push 0x57fb28
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eabd8]
xor eax, esp
push eax
lea eax, [esp + 0xd4]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x84]
xor ebx, ebx
test eax, 0xa000
jne 0x4f0036
xor ebp, ebp
mov dword [esp + 0x24], ebp
jmp 0x4f0042
mov dword [esp + 0x24], 1
mov ebp, dword [esp + 0x24]
mov eax, dword [esi + 0xd8]
xor ecx, ecx
cmp byte [eax + 0x14], 1
sete cl
mov edi, ecx
cmp edi, ebx
jne 0x4f00c3
cmp ebp, ebx
jne 0x4f00c7
mov dword [esp + 0x2c], ebx
mov ebp, dword [eax + 0x18]
lea ecx, [esp + 0x6c]
call fcn.00509420
mov eax, dword [esi + 0xe8]
mov ecx, dword [esi + 0xec]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xd8]
add eax, 4
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], ecx
mov edx, dword [eax]
mov dword [esp + 0x74], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x78], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0xdc], ebx
mov dword [esp + 0x80], eax
cmp edi, ebx
je 0x4f00d1
push ebx
push 0xfffffffffffffffe
lea ecx, [esp + 0x7c]
push ecx
jmp 0x4f00d9
cmp ebp, ebx
jne 0x4f005b
mov dword [esp + 0x2c], 1
jmp 0x4f005f
push 0xfffffffffffffffe
push ebx
lea edx, [esp + 0x7c]
push edx
call dword [0x587704]
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x78]
push ecx
mov edx, ecx
push edx
call dword [0x5877f8]
mov ecx, esi
call fcn.0047827d
mov ecx, eax
mov dword [esp + 0x28], ecx
cmp edi, ebx
je 0x4f010d
or dword [esp + 0x70], 0x100
jmp 0x4f0115
or dword [esp + 0x70], 0x200
mov ecx, dword [ecx + 0x20]
xor eax, eax
mov ebx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x40], ebx
call dword [0x587698]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x14]
push edx
call fcn.0047f67b
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.0047f63a
cmp dword [esp + 0x2c], ebx
je 0x4f02b6
test dword [esi + 0x84], 0x3000
je 0x4f0186
push ebp
mov ecx, esi
call fcn.004ed760
mov ebp, eax
lea ecx, [esi + 0x9c]
push ecx
lea edx, [esp + 0x34]
push edx
push ebp
mov ecx, esi
call fcn.004ed790
mov eax, dword [esi + 0x84]
mov ebx, dword [esp + 0x38]
and eax, 0xf000
cmp eax, 0x4000
ja 0x4f0278
je 0x4f023e
cmp eax, 0x1000
je 0x4f0203
cmp eax, 0x2000
jne 0x4f033d
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x3c]
sub eax, ebx
add ecx, eax
cmp dword [esp + 0x18], ecx
jg 0x4f01e2
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x4c]
test ecx, ecx
jle 0x4f033d
add eax, ecx
cmp dword [esp + 0x18], eax
jg 0x4f033d
mov dword [esp + 0x18], eax
jmp 0x4f033d
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x3c]
mov edx, ecx
sub edx, ebx
add eax, edx
cmp dword [esp + 0x14], eax
jg 0x4f021b
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x50]
test eax, eax
jle 0x4f033d
sub eax, ebx
add eax, ecx
cmp dword [esp + 0x14], eax
jg 0x4f033d
mov dword [esp + 0x14], eax
jmp 0x4f033d
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
lea eax, [ecx + ebx]
cmp edx, eax
jg 0x4f0257
mov edx, eax
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x50]
test ecx, ecx
jle 0x4f033d
mov eax, ebx
sub eax, ecx
cmp edx, eax
jl 0x4f033d
mov dword [esp + 0x1c], eax
jmp 0x4f033d
cmp eax, 0x8000
jne 0x4f033d
mov edx, dword [esp + 0x78]
sub edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x20]
lea eax, [edx + ebx]
cmp ecx, eax
jl 0x4f029c
mov ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x4c]
test eax, eax
jle 0x4f033d
mov edx, ebx
sub edx, eax
lea eax, [edx + 0xa]
cmp ecx, eax
jmp 0x4f0337
lea eax, [esp + 0x58]
push eax
push 0
push 0x3e80
push ebp
mov ecx, esi
call fcn.004ee010
lea ecx, [esp + 0x54]
push ecx
push 0
push 0x3e80
lea edx, [ebp - 1]
push edx
mov ecx, esi
mov edi, eax
call fcn.004edef0
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
add edx, ecx
cmp edx, 1
jg 0x4f02f6
xor edi, edi
xor eax, eax
cmp dword [esp + 0x24], 0
je 0x4f031e
mov edx, dword [esp + 0x74]
mov ecx, edx
sub ecx, eax
cmp dword [esp + 0x14], ecx
jg 0x4f030f
mov dword [esp + 0x14], ecx
lea eax, [edi + edx]
cmp dword [esp + 0x1c], eax
jl 0x4f033d
mov dword [esp + 0x1c], eax
jmp 0x4f033d
mov edx, dword [esp + 0x78]
mov ecx, edx
sub ecx, eax
cmp dword [esp + 0x18], ecx
jg 0x4f0330
mov dword [esp + 0x18], ecx
lea eax, [edx + edi]
cmp dword [esp + 0x20], eax
jl 0x4f033d
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push 0
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc4], edx
mov edx, dword [esp + 0xf0]
push edx
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xf0]
push eax
push esi
push 2
lea ecx, [esp + 0x84]
call fcn.00509320
test eax, eax
je 0x4f04d2
mov ecx, dword [esi + 0xd8]
cmp byte [ecx + 0x14], 1
jne 0x4f03b0
mov eax, dword [esp + 0x74]
sub eax, dword [esp + 0xc4]
jmp 0x4f03bb
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0xc8]
test eax, eax
je 0x4f04d2
cmp dword [esp + 0x2c], 0
je 0x4f0476
test dword [esi + 0x84], 0x3000
je 0x4f03dc
neg eax
mov ecx, ebx
mov ebx, dword [esp + 0x3c]
sub ecx, eax
cmp ebx, ecx
jg 0x4f03ea
mov ebx, ecx
cmp ebp, dword [esi + 0xa4]
jge 0x4f04b4
test ebp, ebp
jl 0x4f0471
cmp ebp, dword [esi + 0xa4]
jge 0x4f0471
mov edx, dword [esi + 0xa0]
cmp dword [edx + ebp*4], 0
lea eax, [edx + ebp*4]
je 0x4f04b4
push ebp
mov ecx, esi
call fcn.0049b0b6
mov edi, eax
test edi, edi
je 0x4f0466
mov eax, dword [edi + 0x20]
push eax
call dword [0x587708]
test eax, eax
je 0x4f0466
mov eax, dword [edi]
mov edx, dword [eax + 0x168]
mov ecx, edi
call edx
test eax, eax
je 0x4f0466
push 0x5a947c
mov ecx, edi
call fcn.004883b0
test eax, eax
je 0x4f0466
cmp dword [esp + 0x24], 0
je 0x4f0460
mov dword [edi + 0xa4], ebx
jmp 0x4f0466
mov dword [edi + 0xa8], ebx
inc ebp
cmp ebp, dword [esi + 0xa4]
jl 0x4f03f6
jmp 0x4f04b4
call fcn.0047cde8
push 0
mov ecx, esi
push 1
test eax, eax
jge 0x4f049d
neg eax
push eax
lea eax, [ebp - 1]
push eax
call fcn.004edef0
push 0
push 1
neg eax
push eax
push ebp
mov ecx, esi
call fcn.004ee010
jmp 0x4f04b4
push eax
push ebp
call fcn.004ee010
push 0
push 1
neg eax
push eax
dec ebp
push ebp
mov ecx, esi
call fcn.004edef0
mov ecx, dword [esi + 0x20]
push 1
push 0
push ecx
call dword [0x5876a4]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 0x150]
push 1
call eax
lea ecx, [esp + 0x6c]
mov dword [esp + 0xdc], 0xffffffff
call fcn.005093d0
mov ecx, dword [esp + 0xd4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xcc
ret 8