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

Disassembly:
sub esp, 0x100
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edx, ecx
mov dword [esp + 0x50], esi
mov edi, ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [esp + eax*4 + 0x50]
sub edi, 1
jne 0x1004e780
cmp dword [esp + 0x50], ebx
jne 0x1004e7ad
mov eax, dword [esp + 0x11c]
mov dword [eax], esi
mov eax, dword [esp + 0x120]
mov dword [eax], esi
xor eax, eax
jmp 0x1004eb58
mov edi, dword [esp + 0x120]
xor ecx, ecx
push 0xf
inc ecx
pop eax
mov ebx, dword [edi]
mov dword [esp + 0x1c], ebx
cmp dword [esp + ecx*4 + 0x50], esi
jne 0x1004e7cb
inc ecx
cmp ecx, eax
jbe 0x1004e7c0
push ebp
mov ebp, ecx
mov dword [esp + 0x1c], ebp
cmp ebx, ecx
jae 0x1004e7dc
mov ebx, ecx
mov dword [esp + 0x20], ebx
cmp dword [esp + eax*4 + 0x54], esi
jne 0x1004e7e7
sub eax, 1
jne 0x1004e7dc
mov dword [esp + 0x40], eax
cmp ebx, eax
jbe 0x1004e7f5
mov ebx, eax
mov dword [esp + 0x20], ebx
mov dword [edi], ebx
xor edi, edi
inc edi
shl edi, cl
jmp 0x1004e807
sub edi, dword [esp + ecx*4 + 0x54]
js 0x1004e81c
inc ecx
add edi, edi
cmp ecx, eax
jb 0x1004e7fe
mov ecx, eax
mov ebp, edi
shl ecx, 2
mov dword [esp + 0x30], ecx
sub edi, dword [esp + ecx + 0x54]
jns 0x1004e823
push 0xfffffffffffffffd
jmp 0x1004eb66
mov dword [esp + ecx + 0x54], ebp
mov ebp, esi
mov dword [esp + 0x98], esi
sub eax, 1
je 0x1004e84a
mov ecx, esi
add ebp, dword [esp + ecx + 0x58]
lea ecx, [ecx + 4]
mov dword [esp + ecx + 0x98], ebp
sub eax, 1
jne 0x1004e837
mov eax, dword [esp + 0x10]
mov ecx, esi
mov ebx, dword [esp + 0x130]
mov ebp, dword [edx]
lea edx, [edx + 4]
test ebp, ebp
je 0x1004e876
mov eax, dword [esp + ebp*4 + 0x94]
mov dword [ebx + eax*4], ecx
inc eax
mov dword [esp + ebp*4 + 0x94], eax
mov eax, dword [esp + 0x10]
inc ecx
cmp ecx, eax
jb 0x1004e857
mov eax, dword [esp + 0x30]
or ebp, 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], ebp
mov eax, dword [esp + eax + 0x94]
mov dword [esp + 0x50], eax
mov eax, ebx
mov ebx, dword [esp + 0x20]
mov edx, ebx
mov dword [esp + 0x3c], eax
neg edx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x94], esi
mov dword [esp + 0xd4], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], esi
cmp ecx, eax
jg 0x1004eb49
lea eax, [esp + 0x54]
lea eax, [eax + ecx*4]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
jmp 0x1004eb2b
mov dword [esp + 0x48], eax
dec eax
mov dword [esp + 0x30], eax
lea eax, [edx + ebx]
cmp ecx, eax
jle 0x1004ea17
mov eax, edx
sub eax, ebx
add eax, ebx
add edx, ebx
mov dword [esp + 0x44], eax
inc ebp
mov eax, dword [esp + 0x40]
sub eax, edx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x4c], edx
mov dword [esp + 0x10], eax
cmp eax, ebx
jbe 0x1004e922
mov dword [esp + 0x10], ebx
xor ebp, ebp
sub ecx, edx
inc ebp
shl ebp, cl
cmp ebp, dword [esp + 0x48]
jbe 0x1004e963
or eax, 0xffffffff
sub eax, dword [esp + 0x30]
add ebp, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x1004e963
inc ecx
cmp ecx, eax
jae 0x1004e963
mov esi, dword [esp + 0x18]
add ebp, ebp
lea esi, [esi + 4]
cmp ebp, dword [esi]
jbe 0x1004e961
sub ebp, dword [esi]
inc ecx
cmp ecx, eax
jb 0x1004e951
xor esi, esi
mov eax, dword [esp + 0x12c]
xor ebp, ebp
inc ebp
shl ebp, cl
mov dword [esp + 0x10], ebp
mov eax, dword [eax]
add ebp, eax
cmp ebp, 0x5a0
ja 0x1004eb64
mov ebx, dword [esp + 0x128]
lea eax, [ebx + eax*8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + eax*4 + 0xd4], ebx
mov ebx, dword [esp + 0x12c]
mov dword [ebx], ebp
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x1004e9f3
mov ebp, dword [esp + 0x28]
mov edx, ebp
mov dword [esp + eax*4 + 0x94], ebp
mov ebp, dword [esp + 0x18]
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x44]
shr edx, cl
mov ecx, dword [esp + eax*4 + 0xd0]
sub ebp, ecx
mov byte [esp + 0x35], bl
mov eax, dword [esp + 0x34]
sar ebp, 3
sub ebp, edx
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], ebp
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x24], ebp
jmp 0x1004ea00
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ebx]
mov ebp, dword [esp + 0x14]
cmp ecx, eax
mov eax, dword [esp + 0x44]
jg 0x1004e8ff
mov ebp, dword [esp + 0x50]
mov al, cl
sub al, dl
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x130]
lea eax, [eax + ebp*4]
mov ebp, dword [esp + 0x3c]
cmp ebp, eax
jb 0x1004ea3c
mov byte [esp + 0x34], 0xc0
jmp 0x1004ea94
mov eax, dword [ebp]
add ebp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], ebp
cmp eax, dword [esp + 0x114]
jae 0x1004ea65
cmp eax, 0x100
setb al
dec al
and al, 0x60
mov byte [esp + 0x34], al
jmp 0x1004ea94
sub eax, dword [esp + 0x114]
mov ecx, eax
mov dword [esp + 0x3c], ebp
mov eax, dword [esp + 0x11c]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x118]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
xor ebp, ebp
sub ecx, edx
inc ebp
shl ebp, cl
mov ecx, edx
shr eax, cl
cmp eax, dword [esp + 0x10]
jae 0x1004eaca
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov dword [esi + eax*8], ecx
mov dword [esi + eax*8 + 4], ebx
add eax, ebp
cmp eax, dword [esp + 0x10]
jb 0x1004eab5
mov ebx, dword [esp + 0x20]
xor esi, esi
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov ebp, dword [esp + 0x28]
inc eax
lea ecx, [ecx - 1]
shl eax, cl
jmp 0x1004eae0
xor ebp, eax
shr eax, 1
test ebp, eax
jne 0x1004eadc
xor ebp, eax
mov ecx, edx
xor eax, eax
mov dword [esp + 0x28], ebp
inc eax
shl eax, cl
mov ecx, dword [esp + 0x14]
dec eax
and eax, ebp
cmp eax, dword [esp + ecx*4 + 0x94]
je 0x1004eb1f
mov esi, ecx
xor eax, eax
sub edx, ebx
inc eax
mov ecx, edx
shl eax, cl
dec esi
dec eax
and eax, ebp
cmp eax, dword [esp + esi*4 + 0x94]
jne 0x1004eb03
mov dword [esp + 0x14], esi
xor esi, esi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
test eax, eax
jne 0x1004e8e7
add dword [esp + 0x2c], 4
inc ecx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jle 0x1004e8dc
test edi, edi
je 0x1004eb55
cmp eax, 1
je 0x1004eb55
push 0xfffffffffffffffb
pop esi
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x100
ret 0x20
push 0xfffffffffffffffc
pop eax
jmp 0x1004eb57