Function at 0x10046e60
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 0x10046eb3
cmp byte [eax + 0x3c], 0
mov byte [esp + 0x1b], 1
jne 0x10046eb8
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 0x10047752
mov edi, dword [esp + 0xc0]
jmp 0x10046f10
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 0x10046f47
lea eax, [ebx - 1]
cmp eax, 1
ja 0x10046f47
cmp ebp, 2
jl 0x10047728
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 0x10047728
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 0x10046f8c
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 0x1008c210
push 2
call fcn.10052110
add esp, 0x20
cmp dword [esp + 0x7c], 3
jle 0x10047032
mov eax, dword [edi*4 + 0x1008c910]
jmp 0x10047039
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 0x1004705c
dec eax
or eax, 0xfffffffe
inc eax
mov eax, dword [esp + 0xbc]
mov ebp, dword [eax]
mov eax, dword [ebp + 0x18]
jne 0x10047389
dec eax
xor edx, edx
div dword [esp + 0x2c]
mov ebx, 1
inc eax
mov dword [esp + 0x1c], ebx
cmp eax, ebx
jbe 0x100476a5
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 0x1004712f
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 0x1008c234
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 0x10047350
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 0x10047315
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 0x10047311
lea ecx, [ecx]
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x100471d6
cmp edi, 3
jge 0x100471d6
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 0x10047306
cmp byte [esp + 0x1a], 0
je 0x100471f8
cmp edi, 4
jge 0x100471f8
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 0x10047306
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 0x10047266
cmp edi, 4
mov edi, dword [esp + 0x28]
jne 0x1004725a
cmp edi, dword [esp + 0x20]
cmovg edi, dword [esp + 0x20]
mov dword [esp + 0x28], edi
cmp ebp, edi
jg 0x10047262
cmp ebp, eax
jge 0x1004726a
mov ebp, eax
jmp 0x1004726a
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.1004d300
push eax
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.1004d600
lea eax, [esp + 0x50]
mov ecx, esi
push eax
call fcn.1004d300
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
cmp edx, edi
je 0x100472fe
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.1004e9f0
add esp, 8
mov ebp, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
inc ebx
cmp ebx, dword [esp + 0x60]
jb 0x100471b0
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 0x10047166
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 0x100470a2
jmp 0x100476a5
dec eax
xor edx, edx
div dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
inc eax
je 0x100476a5
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 0x1004743f
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 0x1008c258
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 0x10047673
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 0x10047638
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 0x100474c3
test bl, 1
jne 0x100474c3
dec ebx
test ebx, ebx
mov ecx, 1
cmove ebx, ecx
cmp ebx, eax
jae 0x10047634
cmp byte [esp + 0x1b], 0
mov esi, dword [esp + 0x34]
je 0x100474fb
cmp edi, 3
jge 0x100474fb
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 0x10047627
cmp byte [esp + 0x1a], 0
je 0x1004751d
cmp edi, 4
jge 0x1004751d
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 0x10047627
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 0x10047589
cmp edi, 4
jne 0x1004757f
cmp esi, dword [esp + 0x20]
cmovg esi, dword [esp + 0x20]
mov dword [esp + 0x28], esi
cmp ebp, esi
jg 0x10047587
cmp ebp, eax
jge 0x10047589
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.1004d300
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.1004d600
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x50]
push eax
call fcn.1004d300
mov edx, dword [esp + 0x60]
mov dword [esp + 0x70], eax
cmp edx, esi
je 0x10047623
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.1004e9f0
mov edi, dword [esp + 0x38]
add esp, 8
mov ebp, dword [esp + 0x3c]
add ebx, 2
cmp ebx, dword [esp + 0x68]
jb 0x100474d5
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 0x10047476
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 0x100473b0
mov ebx, dword [esp + 0x78]
push dword [ebx]
call fcn.100701b4
add esp, 4
cmp eax, dword [esp + 0x74]
jle 0x100476ed
push dword [ebx]
call fcn.100701b4
add esp, 4
push eax
push 0x1008c27c
push 3
call fcn.10052110
add esp, 0xc
push 0x1008c294
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 0x10047721
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 0x10046f10
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret