Function at 0x10048b50
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 esi, edx
mov dword [esp + 0x78], ecx
mov ebx, dword [esp + 0xbc]
mov eax, dword [ebx]
mov edx, dword [eax + 0x24]
mov dword [esp + 0x7c], edx
cmp edx, 3
jle 0x10048ba3
cmp byte [eax + 0x3c], 0
mov byte [esp + 0x1b], 1
jne 0x10048ba8
mov byte [esp + 0x1b], 0
mov eax, dword [esp + 0xcc]
push dword [ecx]
add eax, 0x44
cmp edx, 5
mov dword [esp + 0x84], eax
sete byte [esp + 0x1e]
call fcn.100701b4
mov edx, dword [ebx]
xor ebp, ebp
mov ebx, dword [esp + 0xc8]
add esp, 4
mov dword [esp + 0xa4], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x44], ebp
lea ecx, [ebx + 1]
imul ecx, dword [edx + 0x24]
test ecx, ecx
jle 0x10049442
mov edi, dword [esp + 0xc0]
jmp 0x10048c00
push edi
push ebp
push 0
push ebx
lea ecx, [esp + 0x40]
call fcn.10052dd0
mov eax, dword [esp + 0xdc]
add esp, 0x10
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
cmp dword [eax + 0x58], 0
je 0x10048c37
lea eax, [ebx - 1]
cmp eax, 1
ja 0x10048c37
cmp ebp, 2
jl 0x10049418
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 0x10049418
mov eax, dword [esp + 0x80]
mov esi, dword [esp + 0xbc]
mov eax, dword [eax + ebx*4]
mov dword [esp + 0x6c], eax
test eax, eax
jns 0x10048c7c
push ebp
push ebx
mov edx, edi
mov ecx, esi
call fcn.1003adf0
add esp, 8
mov dword [esp + 0x6c], eax
mov eax, dword [esi]
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 0x1008c3d0
push 2
call fcn.10052110
add esp, 0x20
cmp dword [esp + 0x7c], 3
jle 0x10048d22
mov eax, dword [edi*4 + 0x1008c910]
jmp 0x10048d29
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 0x10048d4c
dec eax
or eax, 0xfffffffe
inc eax
mov eax, dword [esp + 0xbc]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x18]
jne 0x10049079
dec eax
xor edx, edx
div dword [esp + 0x2c]
mov ebx, 1
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jbe 0x10049395
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 0x10048e1f
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 0x1008c3f4
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 0x10049040
xor ebp, ebp
mov dword [esp + 0x3c], ebp
mov ebx, ebp
add ebp, esi
mov dword [esp + 0x38], ebp
cmp dword [ebp + 0x58], 0
jge 0x10049005
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 0x10049001
lea ecx, [ecx]
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x10048ec6
cmp edi, 3
jge 0x10048ec6
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 0x10048ff6
cmp byte [esp + 0x1a], 0
je 0x10048ee8
cmp edi, 4
jge 0x10048ee8
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 0x10048ff6
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 0x10048f56
cmp edi, 4
mov edi, dword [esp + 0x28]
jne 0x10048f4a
cmp edi, dword [esp + 0x20]
cmovg edi, dword [esp + 0x20]
mov dword [esp + 0x28], edi
cmp ebp, edi
jg 0x10048f52
cmp ebp, eax
jge 0x10048f5a
mov ebp, eax
jmp 0x10048f5a
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 0x10048fee
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 0x10048ea0
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 0x10048e56
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 0x10048d92
jmp 0x10049395
dec eax
xor edx, edx
div dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
inc eax
je 0x10049395
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 0x1004912f
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 0x1008c418
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 0x10049363
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 0x10049328
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 0x100491b3
test bl, 1
jne 0x100491b3
dec ebx
test ebx, ebx
mov ecx, 1
cmove ebx, ecx
cmp ebx, eax
jae 0x10049324
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x100491eb
cmp edi, 3
jge 0x100491eb
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 0x10049317
cmp byte [esp + 0x1a], 0
je 0x1004920d
cmp edi, 4
jge 0x1004920d
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 0x10049317
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 0x10049279
cmp edi, 4
jne 0x1004926f
cmp esi, dword [esp + 0x20]
cmovg esi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
cmp ebp, esi
jg 0x10049277
cmp ebp, eax
jge 0x10049279
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 0x10049313
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 0x100491c5
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 0x10049166
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 0x100490a0
mov ebx, dword [esp + 0x78]
push dword [ebx]
call fcn.100701b4
add esp, 4
cmp eax, dword [esp + 0x74]
jle 0x100493dd
push dword [ebx]
call fcn.100701b4
add esp, 4
push eax
push 0x1008c43c
push 3
call fcn.10052110
add esp, 0xc
push 0x1008c454
push 5
call fcn.10052110
push dword [ebx]
call fcn.100701b4
add esp, 0xc
mov dword [esp + 0x74], eax
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x50]
test eax, eax
je 0x10049411
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 ebx, dword [esp + 0xbc]
mov ebp, dword [esp + 0x44]
inc ebp
mov dword [esp + 0x44], ebp
mov edx, dword [ebx]
mov ebx, dword [esp + 0xc4]
mov eax, dword [edx + 0x24]
lea ecx, [ebx + 1]
imul eax, ecx
cmp ebp, eax
jl 0x10048c00
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret