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

Disassembly:
sub esp, 0x100
mov eax, dword [0x10c67840]
xor eax, esp
mov dword [esp + 0xfc], eax
push ebx
mov ebx, dword [esp + 0x108]
push ebp
push esi
mov esi, edx
mov edx, dword [esp + 0x11c]
or eax, 0xffffffff
push edi
mov edi, dword [esp + 0x118]
lea ebp, [edi + edx*2]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], eax
xor eax, eax
test esi, 0xffff5a6f
lea edx, [ebp - 2]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edx
je 0x1004eb30
mov eax, 0xfffffffd
jmp 0x1004f0b0
cmp ebx, eax
je 0x1004f0ab
cmp edi, eax
je 0x1004f0ab
cmp ecx, eax
jne 0x1004eb51
cmp dword [esp + 0x124], eax
jg 0x1004f0ab
cmp dword [esp + 0x124], eax
jge 0x1004eb64
mov eax, 0xfffffff1
jmp 0x1004f0b0
mov ecx, dword [ebx + 0x20]
cmp ecx, eax
mov dword [esp + 0x54], 0x989680
mov dword [esp + 0xb0], eax
mov dword [esp + 0x24], ecx
jne 0x1004eb87
mov ecx, 0x10c0e0f0
mov dword [esp + 0x24], ecx
cmp dword [ebx], 0x50435245
je 0x1004ebbf
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0xc0]
push 0
push ecx
mov edx, ebx
call fcn.100589f0
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1004ebbb
mov eax, 0xfffffffc
jmp 0x1004f0b0
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 8]
mov edx, eax
or edx, esi
shr edx, 4
and edx, 1
mov dword [esp + 0x3c], edx
mov edx, eax
shr edx, 0x1c
and edx, 1
shr eax, 0x12
and eax, 1
mov dword [esp + 0x48], edx
movzx edx, word [ebx + 0x1c]
mov dword [esp + 0x38], eax
movzx eax, word [ebx + 0x1a]
imul edx, eax
movzx eax, word [ebx + 0x18]
add edx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
add eax, edx
mov edx, dword [esp + 0x120]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x11c]
mov dword [esp + 0xa8], edx
mov dword [esp + 0x90], edi
lea edi, [edi + eax*2]
mov dword [esp + 0x94], edi
mov edx, dword [ebx + 8]
shr edx, 5
and edx, 1
mov dword [esp + 0x7c], edx
mov eax, dword [ebx + 8]
shr eax, 0xb
and eax, 1
mov edx, esi
shr edx, 7
and edx, 1
mov dword [esp + 0x78], eax
mov eax, esi
mov dword [esp + 0x70], edx
shr eax, 8
mov edx, esi
and eax, 1
shr edx, 0xa
and edx, 1
shr esi, 0xf
mov dword [esp + 0x74], eax
mov eax, 0
mov dword [esp + 0x64], ecx
and esi, 1
lea ecx, [ecx + 0x340]
mov dword [esp + 0x28], edi
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x68], ecx
je 0x1004ecb4
test dword [ebx + 8], 0x4000000
je 0x1004ecb4
mov eax, 0xfffffff3
jmp 0x1004f0b0
mov eax, dword [ebx + 8]
and eax, 7
mov dword [esp + 0x4c], eax
mov eax, 0x55555556
imul dword [esp + 0x124]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edi, [eax + eax*2]
movzx eax, word [ebx + 0x12]
test ax, ax
jbe 0x1004ed25
movzx ecx, ax
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x1004ed25
lea edi, [ecx + ecx*2 + 3]
lea ecx, [edi*4]
push ecx
call dword [0x10c7f348]
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x58], esi
jne 0x1004ed1b
mov eax, 0xfffffffa
jmp 0x1004f0b0
mov dword [esp + 0x1c], 1
jmp 0x1004ed2d
mov esi, dword [esp + 0x20]
mov dword [esp + 0x58], esi
lea ecx, [edi + edi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x6c], 0
mov dword [esp + 0xa4], 0xffffffff
movzx eax, word [ebx + 0x10]
lea eax, [eax + eax + 2]
cmp eax, dword [esp + 0x124]
mov dword [esp + 0x14], eax
jle 0x1004ed74
mov eax, edi
mov dword [esp + 0x14], edi
test esi, esi
je 0x1004ed9e
cdq
sub eax, edx
sar eax, 1
mov edx, 1
lea ecx, [esi + edi*4]
sub edx, eax
lea eax, [ecx + edx*4]
sub ecx, 4
cmp ecx, eax
jb 0x1004ed9e
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x1004ed91
cmp dword [esp + 0x3c], 0
jne 0x1004edd6
test dword [ebx + 8], 0x40000000
je 0x1004edd6
movzx eax, word [ebx + 0x14]
mov ecx, eax
and ecx, 0xff
shr eax, 8
and eax, 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x44], eax
je 0x1004edd6
mov eax, dword [esp + 0x64]
movzx ecx, byte [eax + ecx]
mov dword [esp + 0x2c], ecx
test dword [ebx + 8], 0x20000000
je 0x1004ee09
movzx eax, word [ebx + 0x16]
mov edx, dword [esp + 0x24]
mov ecx, eax
and ecx, 0xff
shr eax, 8
and eax, 1
mov dword [esp + 0x34], eax
movzx eax, byte [edx + ecx + 0x100]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x28]
lea ecx, [ecx]
mov edi, dword [esp + 0x58]
test edi, edi
mov esi, ebx
je 0x1004ee35
mov ecx, dword [esp + 0x14]
lea ecx, [edi + ecx*4]
cmp edi, ecx
jae 0x1004ee35
sub ecx, edi
sub ecx, 1
shr ecx, 2
add ecx, 1
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x38], 0
je 0x1004ee51
cmp ebp, ebx
mov eax, ebp
jae 0x1004ee4f
cmp word [eax], 0xa
je 0x1004ee4f
add eax, 2
cmp eax, ebx
jb 0x1004ee42
mov ebx, eax
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jl 0x1004ee97
cmp dword [esp + 0x44], 0
je 0x1004ee84
cmp ebp, ebx
jae 0x1004eed0
movzx eax, word [ebp]
cmp eax, 0x7f
jg 0x1004eed0
mov edx, dword [esp + 0x64]
movzx ax, byte [eax + edx]
cmp ax, cx
je 0x1004eed0
add ebp, 2
cmp ebp, ebx
jb 0x1004ee64
jmp 0x1004eed0
cmp ebp, ebx
jae 0x1004eed0
cmp word [ebp], cx
je 0x1004eed0
add ebp, 2
cmp ebp, ebx
jb 0x1004ee88
jmp 0x1004eed0
cmp dword [esp + 0x48], 0
je 0x1004eed0
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x120]
lea edx, [edx + eax*2]
cmp ebp, edx
jbe 0x1004eed0
cmp ebp, ebx
jae 0x1004eed0
mov eax, 0xa
lea esp, [esp]
cmp word [ebp - 2], ax
je 0x1004eed0
add ebp, 2
cmp ebp, ebx
jb 0x1004eec0
lea ecx, [ecx]
cmp dword [esp + 0x18], 0
mov ebx, esi
jl 0x1004ef58
mov eax, esi
sub eax, ebp
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x1004ef58
cmp dword [esp + 0x84], 0
jne 0x1004ef58
xor edx, edx
test ecx, ecx
setge dl
lea eax, [ebp + edx*2]
cmp eax, dword [esp + 0x40]
jbe 0x1004ef58
cmp dword [esp + 0x34], 0
je 0x1004ef2c
cmp eax, esi
jae 0x1004efd8
movzx ecx, word [eax]
add eax, 2
cmp ecx, dword [esp + 0x18]
je 0x1004ef49
cmp ecx, dword [esp + 0x30]
je 0x1004ef49
cmp eax, esi
jb 0x1004ef11
jmp 0x1004efd8
cmp eax, esi
jae 0x1004efd8
movzx ecx, word [eax]
add eax, 2
cmp ecx, dword [esp + 0x18]
je 0x1004ef49
cmp eax, esi
jb 0x1004ef34
jmp 0x1004efd8
sub eax, 2
cmp eax, esi
jae 0x1004efd8
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x90]
lea eax, [esp + 0x54]
push eax
mov ecx, ebp
mov dword [esp + 0xa0], ebp
mov dword [esp + 0x58], 0
call fcn.10049c70
add esp, 8
test eax, eax
jne 0x1004f013
cmp dword [esp + 0x38], eax
je 0x1004ef97
cmp word [ebp], 0xa
je 0x1004efd8
add ebp, 2
cmp dword [esp + 0x78], 0
je 0x1004efc9
cmp ebp, esi
jae 0x1004efc9
jmp 0x1004efb0
movzx ecx, word [ebp]
and ecx, 0xfffffc00
cmp ecx, 0xdc00
jne 0x1004efc9
add ebp, 2
cmp ebp, esi
jb 0x1004efb0
cmp dword [esp + 0x3c], 0
jne 0x1004efd8
cmp ebp, esi
jbe 0x1004ee10
cmp dword [esp + 0x1c], 0
je 0x1004efed
mov edx, dword [esp + 0x58]
push edx
call dword [0x10c7f34c]
add esp, 4
cmp dword [esp + 0x84], 0
je 0x1004f00b
cmp dword [esp + 0x88], 0
je 0x1004f00b
mov eax, 0xfffffff4
jmp 0x1004f0b0
or eax, 0xffffffff
jmp 0x1004f0b0
cmp eax, 1
jne 0x1004f0b0
cmp dword [esp + 0x1c], 0
mov esi, dword [esp + 0x124]
je 0x1004f06a
cmp esi, 4
mov edi, dword [esp + 0x58]
jl 0x1004f04f
mov edx, dword [esp + 0x20]
lea eax, [esi*4 - 8]
push eax
lea ecx, [edi + 8]
push ecx
add edx, 8
push edx
call fcn.1030ad1f
add esp, 0xc
cmp dword [esp + 0xa0], esi
jle 0x1004f060
mov dword [esp + 0x6c], 1
push edi
call dword [0x10c7f34c]
add esp, 4
cmp dword [esp + 0x6c], 0
je 0x1004f075
xor eax, eax
jmp 0x1004f081
mov eax, dword [esp + 0xa0]
cdq
sub eax, edx
sar eax, 1
cmp esi, 2
jge 0x1004f08a
xor eax, eax
jmp 0x1004f0b0
mov ecx, dword [esp + 0x90]
mov esi, dword [esp + 0x9c]
mov edx, dword [esp + 0x20]
sub ebp, ecx
sar ebp, 1
sub esi, ecx
sar esi, 1
mov dword [edx], ebp
mov dword [edx + 4], esi
jmp 0x1004f0b0
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.102f2d37
add esp, 0x100
ret