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

Disassembly:
push 0xffffffffffffffff
push 0x100814b8
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10097288]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, edx
mov ebp, ecx
mov dword [esp + 0x78], ebp
mov edx, dword [esp + 0xbc]
mov edx, dword [edx]
mov esi, dword [edx + 0x24]
mov dword [esp + 0x7c], esi
cmp esi, 3
jle 0x1004c4f5
cmp byte [edx + 0x3c], 0
mov byte [esp + 0x1b], 1
jne 0x1004c4fa
mov byte [esp + 0x1b], 0
mov ebx, dword [esp + 0xcc]
cmp esi, 5
mov dword [esp + 0xa4], eax
sete byte [esp + 0x1a]
lea ecx, [ebx + 0x44]
mov dword [esp + 0x80], ecx
mov ecx, dword [ebp + 0xc]
mov ebp, dword [esp + 0xc4]
mov dword [esp + 0x74], ecx
xor ecx, ecx
mov dword [esp + 0x44], ecx
lea eax, [ebp + 1]
imul eax, dword [edx + 0x24]
test eax, eax
jle 0x1004cd84
mov edi, dword [esp + 0xc0]
push edi
push ecx
push 0
push ebp
lea ecx, [esp + 0x40]
call fcn.10052dd0
mov ebp, dword [esp + 0x44]
add esp, 0x10
cmp dword [ebx + 0x58], 0
mov ebx, dword [esp + 0x30]
je 0x1004c574
lea eax, [ebx - 1]
cmp eax, 1
ja 0x1004c574
cmp ebp, 2
jl 0x1004cd53
mov eax, dword [edi]
mov ecx, edi
push ebx
call dword [eax + 0xc]
mov edx, dword [edi]
mov ecx, edi
push ebx
mov esi, eax
call dword [edx + 8]
cmp eax, esi
jge 0x1004cd53
mov eax, dword [esp + 0x80]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x6c], eax
test eax, eax
jns 0x1004c5b7
mov ecx, dword [esp + 0xbc]
mov edx, edi
push ebp
push ebx
call fcn.1003adf0
add esp, 8
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xbc]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x14]
mov ebx, dword [eax + 0x24]
lea eax, [ebp + 1]
cdq
sub eax, edx
mov edx, 1
sar eax, 1
mov ecx, eax
mov eax, ebp
shl edx, cl
mov dword [esp + 0x2c], edx
cdq
sub eax, edx
xor edx, edx
mov ecx, eax
lea eax, [esi - 1]
div dword [esp + 0x2c]
sar ecx, 1
mov esi, 1
inc eax
shl esi, cl
push eax
lea eax, [edi - 1]
mov dword [esp + 0x4c], ecx
xor edx, edx
mov edi, dword [esp + 0x34]
div esi
inc eax
push eax
mov eax, dword [esp + 0xcc]
inc eax
imul eax, ebx
push edi
dec eax
push eax
push dword [esp + 0x54]
push 0
push 0x64
push dword [0x1009b7a4]
push dword [0x1009b7a0]
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
push 0x1008c750
push 2
call fcn.10052110
add esp, 0x20
cmp dword [esp + 0x7c], 3
jle 0x1004c664
mov eax, dword [edi*4 + 0x1008c910]
jmp 0x1004c66b
mov eax, dword [edi*4 + 0x1008c990]
push eax
lea ecx, [esp + 0x54]
call fcn.10018f50
mov eax, ebp
mov dword [esp + 0xb0], 0
and eax, 0x80000001
jns 0x1004c68e
dec eax
or eax, 0xfffffffe
inc eax
mov eax, dword [esp + 0xbc]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x18]
jne 0x1004c9c9
dec eax
xor edx, edx
div dword [esp + 0x2c]
mov ebx, 1
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jbe 0x1004cce5
mov ecx, dword [esp + 0x48]
mov esi, ebx
shl esi, cl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], esi
lea eax, [ecx*4]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
xor edx, edx
dec eax
mov ecx, dword [0x1009b7a0]
div esi
mov esi, dword [0x1009b7a4]
inc eax
add ecx, eax
mov eax, ebx
mov dword [0x1009b7a0], ecx
adc esi, 0
and eax, 0x101
mov dword [0x1009b7a4], esi
cmp eax, 0x101
jne 0x1004c761
mov eax, dword [ebp + 0x18]
xor edx, edx
dec eax
div dword [esp + 0x2c]
xor edx, edx
inc eax
push eax
mov eax, dword [ebp + 0x14]
dec eax
div dword [esp + 0x44]
inc eax
push eax
mov eax, dword [esp + 0xcc]
inc eax
imul eax, dword [ebp + 0x24]
push edi
dec eax
push eax
push dword [esp + 0x54]
push 0
push 0x64
push esi
push ecx
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
push 0x1008c774
push 3
call fcn.10052110
add esp, 0x20
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4bda12f7
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1004c990
xor ebp, ebp
mov dword [esp + 0x3c], ebp
mov ebx, ebp
jmp 0x1004c7a0
add ebp, esi
mov dword [esp + 0x38], ebp
cmp dword [ebp + 0x58], 0
jge 0x1004c955
mov ecx, dword [esp + 0x48]
mov esi, 1
mov eax, dword [ebp + 0x40]
xor edx, edx
shl esi, cl
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx]
div esi
mov ecx, dword [ebp + 0x4c]
xor edx, edx
mov ebx, eax
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax]
dec eax
div esi
inc eax
mov dword [esp + 0x60], eax
cmp ebx, eax
jae 0x1004c951
jmp 0x1004c7f0
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x1004c816
cmp edi, 3
jge 0x1004c816
mov ecx, dword [ebp + 0xc]
push ebx
push dword [esp + 0x20]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
test eax, eax
je 0x1004c946
cmp byte [esp + 0x1a], 0
je 0x1004c838
cmp edi, 4
jge 0x1004c838
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x20]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
test eax, eax
jg 0x1004c946
push dword [esp + 0x6c]
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x6c]
push eax
push ebx
push dword [esp + 0x2c]
lea ecx, [esp + 0x64]
push edi
push esi
push ebp
call fcn.10052a20
mov ecx, dword [esp + 0x58]
add esp, 0x20
mov ebp, eax
mov ecx, dword [ecx + edi*4]
push ebx
push dword [esp + 0x20]
mov edx, dword [ecx]
push esi
call dword [edx + 8]
cmp byte [esp + 0x1a], 0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x64]
je 0x1004c8a6
cmp edi, 4
mov edi, dword [esp + 0x28]
jne 0x1004c89a
cmp edi, dword [esp + 0x20]
cmovg edi, dword [esp + 0x20]
mov dword [esp + 0x28], edi
cmp ebp, edi
jg 0x1004c8a2
cmp ebp, eax
jge 0x1004c8aa
mov ebp, eax
jmp 0x1004c8aa
mov edi, dword [esp + 0x28]
imul esi, dword [esp + 0x30], 0x4040
sub eax, ebp
mov dword [esp + 0x4c], eax
sub edi, ebp
mov eax, dword [esp + 0xb8]
add esi, dword [eax]
lea eax, [esp + 0x50]
push eax
mov ecx, esi
mov dword [esp + 0x6c], esi
call fcn.1004d6d0
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.1004da00
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.1004d6d0
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
cmp edx, edi
je 0x1004c93e
mov eax, dword [esp + 0x68]
mov esi, dword [esi + 4]
mov dword [esp + 0x98], esi
lea ecx, [eax + 8]
add eax, 0x402c
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x94], ecx
sub eax, ebp
mov ecx, dword [esp + 0x5c]
push eax
mov dword [esp + 0xa0], ecx
lea ecx, [esp + 0x98]
push edi
call fcn.1004ee10
add esp, 8
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
inc ebx
cmp ebx, dword [esp + 0x60]
jb 0x1004c7f0
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xbc]
inc ebx
mov ebp, dword [esp + 0x3c]
add ebp, 0x6c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4bda12f7
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jl 0x1004c7a0
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov esi, dword [esp + 0x40]
add ebx, 2
mov dword [esp + 0x1c], ebx
lea eax, [ecx*8]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xbc]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x18]
dec eax
div ecx
inc eax
cmp ebx, eax
jb 0x1004c6d4
jmp 0x1004cce5
dec eax
xor edx, edx
div dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
inc eax
je 0x1004cce5
mov ecx, dword [esp + 0x48]
mov esi, 1
shl esi, cl
mov dword [esp + 0x4c], esi
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 0x14]
xor edx, edx
dec eax
mov ecx, dword [0x1009b7a0]
div esi
mov esi, dword [0x1009b7a4]
inc eax
shr eax, 1
add ecx, eax
mov eax, ebx
mov dword [0x1009b7a0], ecx
adc esi, 0
and eax, 0x201
mov dword [0x1009b7a4], esi
cmp eax, 0x201
jne 0x1004ca7f
mov eax, dword [ebp + 0x18]
xor edx, edx
dec eax
div dword [esp + 0x2c]
xor edx, edx
inc eax
push eax
mov eax, dword [ebp + 0x14]
dec eax
div dword [esp + 0x50]
inc eax
push eax
mov eax, dword [esp + 0xcc]
inc eax
imul eax, dword [ebp + 0x24]
push edi
dec eax
push eax
push dword [esp + 0x54]
push 0
push 0x64
push esi
push ecx
call fcn.1007f6f0
push dword [0x1009b7b4]
push dword [0x1009b7b0]
push edx
push eax
call fcn.1007f740
push eax
push 0x1008c798
push 3
call fcn.10052110
add esp, 0x20
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x20], 0
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4bda12f7
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x1004ccb3
xor ebp, ebp
mov dword [esp + 0x40], ebp
mov ebx, ebp
add ebp, esi
mov dword [esp + 0x3c], ebp
cmp dword [ebp + 0x58], 0
jge 0x1004cc78
mov ecx, dword [esp + 0x48]
mov esi, 1
mov eax, dword [ebp + 0x40]
xor edx, edx
shl esi, cl
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + ecx]
div esi
mov ecx, dword [ebp + 0x4c]
xor edx, edx
mov ebx, eax
mov eax, dword [esp + 0x24]
mov eax, dword [ecx + eax]
dec eax
div esi
inc eax
or eax, 1
mov dword [esp + 0x68], eax
cmp ebx, 1
jbe 0x1004cb03
test bl, 1
jne 0x1004cb03
dec ebx
test ebx, ebx
mov ecx, 1
cmove ebx, ecx
cmp ebx, eax
jae 0x1004cc74
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x1004cb3b
cmp edi, 3
jge 0x1004cb3b
mov ecx, dword [ebp + 0xc]
push ebx
push dword [esp + 0x20]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
test eax, eax
je 0x1004cc67
cmp byte [esp + 0x1a], 0
je 0x1004cb5d
cmp edi, 4
jge 0x1004cb5d
mov ecx, dword [ebp + 0x10]
push ebx
push dword [esp + 0x20]
mov eax, dword [ecx]
push esi
call dword [eax + 8]
test eax, eax
jg 0x1004cc67
push dword [esp + 0x6c]
mov edx, dword [esp + 0xc4]
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x6c]
push eax
push ebx
push dword [esp + 0x2c]
lea ecx, [esp + 0x64]
push edi
push esi
push ebp
call fcn.10052a20
mov ecx, dword [esp + 0x5c]
add esp, 0x20
mov ebp, eax
mov ecx, dword [ecx + edi*4]
push ebx
push dword [esp + 0x20]
mov edx, dword [ecx]
push esi
call dword [edx + 8]
cmp byte [esp + 0x1a], 0
mov esi, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
je 0x1004cbc9
cmp edi, 4
jne 0x1004cbbf
cmp esi, dword [esp + 0x20]
cmovg esi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
cmp ebp, esi
jg 0x1004cbc7
cmp ebp, eax
jge 0x1004cbc9
mov ebp, eax
mov ecx, dword [esp + 0xb8]
sub eax, ebp
mov dword [esp + 0x60], eax
sub esi, ebp
imul eax, edi, 0x4040
add eax, dword [ecx]
lea ecx, [esp + 0x50]
push ecx
mov ecx, eax
mov dword [esp + 0x3c], eax
call fcn.1004d6d0
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1004da00
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
call fcn.1004d6d0
mov edx, dword [esp + 0x60]
mov dword [esp + 0x70], eax
cmp edx, esi
je 0x1004cc63
mov eax, dword [esp + 0x38]
mov edi, dword [eax + 4]
lea ecx, [eax + 8]
add eax, 0x402c
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x5c]
sub eax, ebp
mov dword [esp + 0x8c], ecx
push eax
push esi
lea ecx, [esp + 0x8c]
mov dword [esp + 0x90], edi
call fcn.1004ee10
mov edi, dword [esp + 0x38]
add esp, 8
mov ebp, dword [esp + 0x3c]
add ebx, 2
cmp ebx, dword [esp + 0x68]
jb 0x1004cb15
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0xbc]
inc ebx
mov ebp, dword [esp + 0x40]
add ebp, 0x6c
mov dword [esp + 0x20], ebx
mov dword [esp + 0x40], ebp
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4bda12f7
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jl 0x1004cab6
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
xor edx, edx
mov esi, dword [esp + 0x4c]
inc ebx
mov dword [esp + 0x1c], ebx
lea eax, [ecx*4]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0xbc]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x18]
dec eax
div ecx
inc eax
cmp ebx, eax
jb 0x1004c9f0
mov ebp, dword [esp + 0x78]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esp + 0x74]
jle 0x1004cd18
push eax
push 0x1008c7bc
push 3
call fcn.10052110
add esp, 0xc
push 0x1008c7d4
push 5
call fcn.10052110
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [esp + 0x74], ecx
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1004cd4c
push eax
call fcn.1006f76a
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov edi, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
mov ebp, dword [esp + 0xc4]
mov ecx, dword [esp + 0x44]
inc ecx
mov edx, dword [eax]
lea ebx, [ebp + 1]
mov dword [esp + 0x44], ecx
mov eax, dword [edx + 0x24]
imul eax, ebx
mov ebx, dword [esp + 0xcc]
cmp ecx, eax
jl 0x1004c544
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret