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

Disassembly:
sub esp, 0x144
push ebx
push ebp
push esi
xor ebx, ebx
lea ecx, [esp + 0x58]
push edi
mov dword [esp + 0x10], ebx
call fcn.004cf1c0
test dword [esp + 0x170], 0x80000
mov eax, dword [0x1010935c]
mov dword [esp + 0x3c], eax
je 0x4e80de
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4e80c6
push 0x100fcb40
push 0x100f711c
push 1
lea ecx, [esp + 0x6c]
call fcn.00458d10
mov ecx, eax
call fcn.0045b060
lea ecx, [esp + 0x60]
call fcn.0045ad30
mov eax, dword [esp + 0x17c]
and dword [esp + 0x170], 0xfff7ffff
mov dword [eax], 0x44
mov esi, dword [esp + 0x160]
xor ebp, ebp
mov edi, dword [esp + 0x15c]
mov edi, edi
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4e8141
push 0x100fccc4
push ebp
push 0x100fccb0
push 0x100f711c
push 4
lea ecx, [esp + 0x15c]
call fcn.00458d10
mov ecx, eax
call fcn.0045b060
mov ecx, eax
call fcn.0045af30
mov ecx, eax
call fcn.0045afa0
lea ecx, [esp + 0x148]
call fcn.0045ad30
inc ebp
mov dword [esp + 0x58], ebp
cmp ebp, 5
jg 0x4e8d4a
mov eax, dword [esp + 0x158]
mov eax, dword [eax + 0x58]
cmp ebp, 4
jne 0x4e819f
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4e819a
push 0x100fcd28
push 0x100f711c
push ebp
lea ecx, [esp + 0xf0]
call fcn.00458d10
mov ecx, eax
call fcn.0045b060
lea ecx, [esp + 0xe4]
call fcn.0045ad30
mov eax, 1
push dword [esp + 0x188]
lea ecx, [esp + 0xf4]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
lea eax, [esp + 0x188]
push eax
call fcn.004ee600
lea eax, [esp + 0xf0]
push eax
push esi
push edi
call fcn.004e9e30
mov ecx, dword [0x10109618]
add esp, 0xc
mov eax, dword [ecx]
push dword [esp + 0x12c]
call dword [eax + 0x80]
test eax, eax
jne 0x4e8ced
mov ecx, dword [esp + 0x13c]
cmp dword [esp + 0x110], eax
je 0x4e85b8
mov eax, dword [esp + 0x138]
test eax, eax
je 0x4e825c
push eax
lea ecx, [esp + 0x60]
call fcn.004cf200
lea ecx, [esp + 0xf0]
call fcn.004eee30
jmp 0x4e80f0
cmp ecx, 2
jne 0x4e85ab
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
call fcn.0044c910
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x30]
push eax
push 0x100fac00
call fcn.00515940
push dword [esp + 0x38]
lea eax, [esp + 0x9c]
push eax
call fcn.00515750
add esp, 0x10
mov edi, dword [eax]
test edi, edi
jne 0x4e82cf
push edi
lea ecx, [esp + 0x34]
call fcn.0044c910
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov word [eax], cx
jmp 0x4e8311
xor ecx, ecx
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x4e82eb
lea ebx, [ebx]
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x4e82e0
push esi
lea ecx, [esp + 0x34]
call fcn.0044c910
lea eax, [esi*2 + 2]
push eax
push edi
push dword [esp + 0x38]
call fcn.0051e4a0
mov esi, dword [esp + 0x16c]
add esp, 0xc
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4e8346
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.0044c910
mov eax, dword [esp + 0x4c]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x30]
test esi, esi
jne 0x4e8457
push 0x100effa0
push dword [esp + 0x160]
push 0x100fac10
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004468f0
add esp, 0xc
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.004468f0
add esp, 0xc
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004468f0
add esp, 0xc
lea ecx, [esp + 0x4c]
push dword [eax]
call fcn.00448e20
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4e83f3
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], esi
mov eax, dword [esp + 0xc0]
test eax, eax
je 0x4e8428
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0xc0], 0
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc8], 0
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x4e84f4
push eax
call fcn.005123a0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
jmp 0x4e84f1
push esi
push 0x100fcde4
push eax
lea eax, [esp + 0xb4]
push eax
call fcn.004468f0
add esp, 0xc
push eax
lea eax, [esp + 0xd4]
push eax
call fcn.004468f0
add esp, 0xc
lea ecx, [esp + 0x4c]
push dword [eax]
call fcn.00448e20
mov eax, dword [esp + 0xcc]
test eax, eax
je 0x4e84bf
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0xcc], 0
mov dword [esp + 0xd0], 0
mov dword [esp + 0xd4], 0
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4e84f4
push eax
call fcn.005123a0
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
add esp, 4
push dword [esp + 0x180]
mov ecx, dword [esp + 0x174]
push dword [esp + 0x180]
mov edx, dword [0x1010935c]
or ecx, 4
push dword [esp + 0x180]
mov esi, dword [esp + 0x58]
push dword [esp + 0x180]
mov eax, dword [edx + 0x113c]
push ecx
push dword [esp + 0x180]
lea ecx, [edx + 0x113c]
push dword [esp + 0x180]
push dword [esp + 0x180]
push esi
push 0
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x2c], ebp
test esi, esi
je 0x4e8579
push esi
call fcn.005123a0
add esp, 4
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4e8699
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
jmp 0x4e8699
mov dword [esp + 0x2c], 1
jmp 0x4e86a1
mov eax, dword [esp + 0x184]
test eax, eax
je 0x4e8625
cmp dword [eax], 3
jne 0x4e8625
push dword [esp + 0x180]
mov ecx, dword [esp + 0x174]
push dword [esp + 0x180]
mov edx, dword [0x1010935c]
or ecx, 4
push dword [esp + 0x180]
push dword [esp + 0x180]
mov eax, dword [edx + 0x113c]
push ecx
push dword [esp + 0x180]
lea ecx, [edx + 0x113c]
push dword [esp + 0x180]
push dword [esp + 0x180]
push esi
push edi
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x2c], ebp
jmp 0x4e8699
push dword [esp + 0x180]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x180]
mov edx, dword [0x1010935c]
push dword [esp + 0x180]
mov ecx, dword [ecx + 0x30]
push dword [esp + 0x180]
mov eax, dword [edx + 0x113c]
neg ecx
sbb ecx, ecx
and ecx, 4
or ecx, dword [esp + 0x180]
push ecx
push dword [esp + 0x180]
lea ecx, [edx + 0x113c]
push dword [esp + 0x180]
push dword [esp + 0x180]
push esi
push edi
call dword [eax + 0x24]
call eax
mov ebp, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x2c], ebp
cmp dword [eax + 0x30], 0
je 0x4e8d3c
test ebp, ebp
je 0x4e8cda
mov eax, dword [esp + 0x170]
shr eax, 2
and eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x180]
push dword [eax]
call dword [0x100df260]
push eax
call fcn.00514330
mov ecx, dword [esp + 0x180]
add esp, 8
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4e86f0
push ecx
lea eax, [esp + 0x7c]
or ebx, 1
push eax
mov dword [esp + 0x18], ebx
call fcn.00515f50
add esp, 8
jmp 0x4e8707
lea eax, [esp + 0xd8]
or ebx, 2
push eax
mov dword [esp + 0x14], ebx
call fcn.00515830
add esp, 4
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
jne 0x4e873b
mov eax, 0x100
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512390
push edi
mov ebp, eax
call fcn.005123a0
add esp, 8
xor eax, eax
mov word [ebp], ax
jmp 0x4e8786
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x4e874f
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x4e8744
xor ecx, ecx
lea eax, [esi + 0x100]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00512390
push 0
mov ebp, eax
call fcn.005123a0
lea eax, [esi*2 + 2]
push eax
push edi
push ebp
call fcn.0051e4a0
add esp, 0x14
test bl, 2
je 0x4e87c7
mov eax, dword [esp + 0xd8]
and ebx, 0xfffffffd
mov dword [esp + 0x10], ebx
test eax, eax
je 0x4e87c7
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
test bl, 1
je 0x4e87ff
mov eax, dword [esp + 0x78]
and ebx, 0xfffffffe
mov dword [esp + 0x10], ebx
test eax, eax
je 0x4e87ff
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov edx, dword [esp + 0x13c]
xor esi, esi
mov ecx, dword [esp + 0x114]
mov dword [esp + 0x1c], esi
cmp edx, 1
jne 0x4e8880
push ecx
lea eax, [esp + 0x88]
push eax
call fcn.00515f50
lea ecx, [esp + 0x24]
push ecx
push dword [eax]
call fcn.004fa640
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x84]
sete byte [esp + 0x1b]
test eax, eax
je 0x4e8865
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x1b], al
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x13c]
cmovne esi, eax
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x120]
mov dword [esp + 0x1c], 0
je 0x4e89bd
cmp edx, 1
jne 0x4e88e0
mov eax, dword [esp + 0x17c]
or ebx, 4
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xa0]
push eax
call fcn.00515f50
mov edx, dword [esp + 0x144]
add esp, 8
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov dword [esp + 0x24], eax
jmp 0x4e8906
mov eax, dword [esp + 0x180]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x188]
cmp edx, 1
sete bl
xor eax, eax
cmp edx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x5c]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x194]
mov eax, dword [esp + 0x1a8]
push ebx
push dword [esp + 0x54]
push ebp
push dword [esp + 0x54]
push dword [esp + 0x5c]
push ebx
push dword [esp + 0x54]
push dword [eax]
call fcn.004f0a30
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 4
je 0x4e8ace
mov ecx, dword [esp + 0x9c]
and ebx, 0xfffffffb
test ecx, ecx
je 0x4e8ace
push ecx
call fcn.005123a0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
jmp 0x4e8acb
cmp edx, 1
jne 0x4e8a00
mov eax, dword [esp + 0x17c]
or ebx, 8
push ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], ebx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x64]
push eax
call fcn.00515f50
mov edx, dword [esp + 0x144]
add esp, 8
mov dword [esp + 0x28], 0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x4e8a26
mov eax, dword [esp + 0x180]
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
push dword [esp + 0x188]
xor ebx, ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x18c]
cmp edx, 1
sete bl
xor eax, eax
cmp edx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x60]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x198]
mov eax, dword [esp + 0x1ac]
push ebx
push dword [esp + 0x44]
push ebp
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push ebx
push dword [esp + 0x6c]
push dword [eax]
call fcn.004e4570
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 8
je 0x4e8ace
mov eax, dword [esp + 0x60]
and ebx, 0xfffffff7
test eax, eax
je 0x4e8ace
push eax
call fcn.005123a0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
add esp, 4
test esi, esi
jne 0x4e8c1e
cmp dword [esp + 0x13c], 1
jne 0x4e8c04
mov eax, dword [esp + 0x180]
push 0xffffffffffffffff
push dword [eax]
call dword [0x100df1b4]
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x180]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x180]
add ecx, 0x72c
push dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x4e8bf9
test ebp, ebp
je 0x4e8b46
push ebp
call fcn.005123a0
add esp, 4
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x4e8b7b
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x12c], 0
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
test edi, edi
je 0x4e8ba9
push edi
call fcn.005123a0
add esp, 4
mov dword [esp + 0x120], 0
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov eax, dword [esp + 0x114]
mov ebp, dword [esp + 0x58]
mov esi, dword [esp + 0x160]
mov edi, dword [esp + 0x15c]
test eax, eax
je 0x4e80f0
push eax
call fcn.005123a0
add esp, 4
mov dword [esp + 0x114], 0
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
jmp 0x4e80f0
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x4e8cb8
cmp dword [esp + 0x40], 0
jne 0x4e8cb8
mov eax, dword [esp + 0x180]
push dword [eax + 4]
jmp 0x4e8cb2
cmp dword [esp + 0x13c], 1
jne 0x4e8c71
cmp dword [esp + 0x40], 0
mov esi, dword [esp + 0x48]
jne 0x4e8c3a
push esi
call dword [0x100df1c8]
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x180]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov eax, dword [esp + 0x180]
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x180]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jmp 0x4e8cb8
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x180]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x180]
mov edx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x180]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jne 0x4e8cb8
push edx
call dword [0x100df1c8]
test ebp, ebp
je 0x4e8cc5
push ebp
call fcn.005123a0
add esp, 4
mov ebp, dword [esp + 0x2c]
lea ecx, [esp + 0xf0]
call fcn.004eee30
jmp 0x4e8db2
lea ecx, [esp + 0xf0]
xor ebp, ebp
call fcn.004eee30
jmp 0x4e8db2
push dword [esp + 0x180]
mov ecx, dword [0x1010935c]
push dword [esp + 0x180]
add ecx, 0x113c
push dword [esp + 0x180]
push dword [esp + 0x180]
mov eax, dword [ecx]
push dword [esp + 0x180]
push dword [esp + 0x180]
push dword [esp + 0x180]
push dword [esp + 0x180]
push esi
push edi
call dword [eax + 0x24]
call eax
mov ebp, eax
lea ecx, [esp + 0xf0]
call fcn.004eee30
jmp 0x4e8db2
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x4e8db0
push 0x100fcd10
push 5
push 0x100fccfc
push ebp
push 0x100fccd8
push 0x100f711c
push 4
lea ecx, [esp + 0x100]
call fcn.00458d10
mov ecx, eax
call fcn.0045b060
mov ecx, eax
call fcn.0045af30
mov ecx, eax
call fcn.0045afa0
mov ecx, eax
call fcn.0045af30
mov ecx, eax
call fcn.0045afa0
lea ecx, [esp + 0xe4]
call fcn.0045ad30
xor ebp, ebp
lea ecx, [esp + 0x5c]
call fcn.004cf1d0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret 0x34