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

Disassembly:
sub esp, 0x38
push ebx
push ebp
push esi
mov esi, dword [esp + 0x48]
xor ecx, ecx
mov edx, 1
mov eax, dword [esi + 0x44]
push edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], edx
mov byte [eax], cl
mov eax, dword [esi + 0x60]
cmp eax, ecx
mov byte [esp + 0x20], 0
mov dword [esp + 0x18], ecx
je 0x10004307
mov eax, dword [esp + 0x60]
cmp eax, 0x14
jbe 0x100042f9
mov dword [esi + 0x30], 3
jmp 0x10004329
cmp eax, 0xa
jbe 0x10004321
mov dword [esi + 0x30], 2
jmp 0x10004329
mov eax, dword [esi + 0x14]
imul eax, dword [esi + 0x10]
cmp eax, 0xafc8
jae 0x1000431a
mov dword [esi + 0x30], ecx
jmp 0x10004329
cmp dword [esp + 0x60], 0xa
ja 0x10004326
mov dword [esi + 0x30], ecx
jmp 0x10004329
mov dword [esi + 0x30], edx
mov ebx, dword [esp + 0x64]
lea ecx, [esp + 0x60]
push ecx
mov edx, dword [ebx]
push edx
push esi
call fcn.10004be0
mov dword [ebx], eax
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 4]
mov edi, edx
shl edi, 3
sub edi, edx
mov edx, dword [esi + 0x20]
mov ebp, edx
add esp, 0xc
shl ebp, 3
lea edi, [ecx + edi*8]
sub ebp, edx
lea ecx, [ecx + ebp*8]
mov dword [edi], eax
mov eax, dword [esp + 0x6c]
xor ebp, ebp
mov dword [esp + 0x70], ecx
mov ecx, dword [0x100113bc]
cmp eax, ebp
je 0x10004381
mov edx, dword [ebx]
mov dword [esp + 0x6c], 1
cmp edx, ecx
je 0x10004385
mov dword [esp + 0x6c], ebp
cmp eax, ebp
je 0x10004397
mov eax, dword [ebx]
mov dword [esp + 0x10], 1
cmp eax, ecx
jne 0x1000439b
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x74]
xor edx, edx
mov ecx, dword [eax]
cmp ecx, ebp
mov ecx, dword [esi + 0xc]
setne dl
mov dword [esi + 0x54], edx
mov eax, dword [eax]
push eax
push ecx
call fcn.10001040
mov eax, dword [esi + 0x54]
add esp, 8
cmp eax, ebp
je 0x100043e2
mov edx, dword [edi]
mov eax, dword [esp + 0x5c]
mov ecx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x5c]
push eax
mov eax, dword [esi + 0xc]
push ecx
push edx
push eax
call fcn.10001060
add esp, 0x14
mov dword [esi + 0x58], eax
jmp 0x100043fa
mov ecx, dword [esp + 0x68]
mov eax, 0x51eb851f
imul ecx, dword [0x100114b8]
mul ecx
shr edx, 5
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
push edi
call fcn.10004940
mov ebx, dword [edi + 4]
add esp, 0x18
mov ecx, dword [ebx + 8]
mov edx, dword [ebx]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
mov ebp, eax
mov eax, dword [ebx + 4]
lea eax, [eax + ecx - 1]
div ecx
imul ebp, eax
mov eax, dword [esi + 0x60]
mov dword [esp + 0x5c], ebp
test eax, eax
je 0x10004478
mov eax, dword [0x1002d1fc]
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x14]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
test eax, eax
mov eax, dword [esi + 0x18]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
je 0x1000446e
call fcn.1004fecf
add esp, 0x18
jmp 0x1000449d
call fcn.1000a070
add esp, 0x18
jmp 0x1000449d
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x1000449d
mov ecx, dword [edi + 0x2c]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x14]
push ecx
mov ecx, dword [esi + 0x10]
push edx
mov edx, dword [esp + 0x58]
push eax
push ecx
push edx
call fcn.1000d1e0
add esp, 0x14
mov eax, dword [esi + 0x60]
mov ecx, dword [edi]
test eax, eax
mov eax, dword [edi + 4]
push ecx
mov edx, dword [eax + 8]
je 0x100044b6
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
jmp 0x100044c3
mov ecx, dword [eax + 4]
shr edx, 1
push edx
mov edx, dword [eax]
shr ecx, 1
push ecx
shr edx, 1
mov eax, dword [edi + 0x34]
push edx
push eax
call fcn.10004a90
mov eax, dword [esi + 0x60]
add esp, 0x14
test eax, eax
je 0x100044e3
mov ecx, dword [esi + 0x58]
mov ecx, dword [ecx*4 + 0x10011438]
jmp 0x100044ed
mov edx, dword [esi + 0x58]
mov ecx, dword [edx*4 + 0x100113d8]
mov ebx, dword [esp + 0x6c]
test ebx, ebx
jne 0x1000451c
mov eax, dword [edi + 0x2c]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [edx + 0x2c]
push eax
sub eax, ecx
push eax
mov eax, dword [edi + 0x34]
push eax
call fcn.1000bd10
add esp, 0x18
jmp 0x10004520
mov eax, dword [esp + 0x50]
test ebx, ebx
jne 0x10004536
mov ecx, dword [esi + 0x58]
mov edx, dword [edi + 0x34]
push ecx
push eax
push edx
push ebp
call fcn.10003810
add esp, 0x10
mov ecx, dword [esi + 0x30]
mov ebx, dword [esp + 0x14]
mov edx, dword [0x100113c0]
test ecx, ecx
jne 0x10004551
mov eax, dword [edi]
cmp eax, edx
jne 0x10004551
test ebx, ebx
je 0x10004565
test ecx, ecx
je 0x10004585
mov eax, dword [edi]
mov ecx, dword [0x100113c8]
cmp eax, ecx
jne 0x10004585
test ebx, ebx
jne 0x10004585
cmp eax, edx
jne 0x10004572
push esi
call fcn.10005540
add esp, 4
mov eax, dword [0x100113cc]
mov edx, dword [esp + 0x64]
mov dword [edi], eax
mov ecx, dword [0x100113cc]
mov dword [edx], ecx
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push eax
push ecx
lea edx, [esp + 0x44]
push esi
lea eax, [esp + 0x24]
push edx
push eax
call fcn.10001430
mov ecx, dword [edi]
mov eax, dword [0x100113cc]
add esp, 0x14
cmp ecx, eax
je 0x10004890
mov eax, dword [esi]
mov ebx, dword [edi + 4]
xor ebp, ebp
lea edx, [eax + 2]
test edx, edx
jbe 0x10004826
mov ecx, dword [esi + 0x44]
cmp ebp, eax
mov dword [esp + 0x4c], ecx
jae 0x1000465b
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10004624
mov eax, dword [ebx + 0xc]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x70]
cmp eax, 3
push edx
lea eax, [esp + 0x50]
mov edx, dword [ecx + ebp*4 + 0x14]
mov ecx, dword [edi + 0x34]
push ebp
push eax
mov eax, dword [edi + ebp*4 + 0x14]
push edx
push eax
push ecx
push ebx
je 0x10004610
call fcn.100064a0
add esp, 0x1c
xor eax, eax
mov al, byte [0x100113b0]
jmp 0x100046b0
call fcn.1000c1f0
add esp, 0x1c
xor eax, eax
mov al, byte [0x100113b0]
jmp 0x100046b0
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 0x48]
push edx
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x50]
push eax
mov eax, dword [edx + ebp*4 + 0x14]
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [edi + ebp*4 + 0x14]
push eax
mov eax, dword [edi + 0x34]
push ecx
push edx
push eax
push ebx
call fcn.10008600
add esp, 0x20
xor eax, eax
mov al, byte [0x100113b0]
jmp 0x100046b0
jne 0x1000466f
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov cl, byte [0x100113b4]
mov dword [esp + 0x64], ecx
jmp 0x1000467f
mov eax, dword [esp + 0x58]
xor edx, edx
mov dl, byte [0x100113b8]
mov dword [esp + 0x64], edx
mov ecx, dword [esp + 0x60]
mov edx, dword [esi + 0x48]
push ecx
push edx
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [edx + ebp*4 + 0x14]
mov edx, dword [edi + ebp*4 + 0x14]
push ecx
push edx
push eax
mov eax, dword [edi + 0x34]
push eax
push ebx
call fcn.100059f0
mov eax, dword [esp + 0x84]
add esp, 0x20
mov edx, dword [edi]
mov ecx, dword [esp + 0x18]
push edx
push ebx
push eax
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x3c]
push ebp
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.10001570
mov al, byte [0x100113a0]
mov edx, dword [esp + 0x30]
add esp, 0x18
lea ecx, [esp + 0x18]
mov dword [esp + 0x64], edx
push eax
push 0
push ecx
call fcn.10005940
add esp, 0xc
lea edx, [esp + 0x18]
push 1
push 1
push edx
call fcn.10005940
mov al, byte [0x10011324]
xor ecx, ecx
mov cl, byte [0x10011328]
add esp, 0xc
inc ecx
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.10005940
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [esp + 0x24], eax
mov al, byte [0x1001132c]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x38], edx
call fcn.10005940
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call fcn.100059c3
mov eax, dword [esi + 0x60]
add esp, 4
test eax, eax
jne 0x1000477b
test ebp, ebp
jne 0x1000477b
mov eax, dword [edi]
mov ecx, dword [edi + 0x34]
mov edx, dword [esp + 0x5c]
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call fcn.1000577e
add esp, 0x10
jmp 0x10004795
mov ecx, dword [edi]
mov edx, dword [edi + 0x34]
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
lea ecx, [esp + 0x24]
push ebp
push ecx
call fcn.10005580
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call fcn.100059c3
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x50]
add esp, 4
sub ecx, eax
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
call fcn.10004900
mov edx, dword [esp + 0x24]
add esp, 0xc
add edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
call fcn.100059c3
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov cl, byte [0x1001132c]
add esp, 4
sub edx, eax
lea eax, [esp + 0x24]
shr edx, 3
push ecx
push edx
push eax
call fcn.10005940
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
mov cl, byte [0x100112b0]
add esp, 0xc
sub edx, eax
lea eax, [esp + 0x30]
shr edx, 3
push ecx
push edx
push eax
call fcn.10005940
mov eax, dword [esi]
add esp, 0xc
add ebx, 0x1c
inc ebp
lea ecx, [eax + 2]
cmp ebp, ecx
jb 0x100045c0
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
and ecx, 0xff
mov ebx, dword [esp + 0x1c]
push 0x18
lea eax, [edi + ecx]
cdq
xor eax, edx
sub eax, edx
and eax, 0x1f
xor eax, edx
sub eax, edx
mov dl, 0x20
sub dl, al
mov byte [esp + 0x54], dl
mov eax, dword [esp + 0x54]
and eax, 0xff
mov edx, eax
shr edx, 3
lea eax, [edi + eax + 0x20]
lea edx, [ebx + edx + 4]
mov dword [esp + 0x1c], eax
add eax, ecx
mov dword [esp + 0x20], edx
cdq
mov ecx, dword [esp + 0x78]
and edx, 7
add eax, edx
lea edx, [esp + 0x40]
sar eax, 3
push eax
push edx
mov dword [ecx], eax
call fcn.10005940
add esp, 0xc
jmp 0x100048af
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
and ecx, 0xff
add eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x74]
sar eax, 3
mov dword [edx], eax
mov ebx, dword [esi + 0x5c]
mov edi, dword [esi + 0x50]
mov eax, dword [esi + 0x4c]
inc ebx
inc edi
mov dword [esi + 0x5c], ebx
test eax, eax
mov dword [esi + 0x50], edi
mov ecx, edi
je 0x100048d1
cmp ecx, eax
jb 0x100048d1
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x100048eb
mov eax, dword [esp + 0x74]
mov edx, dword [esi + 0xc]
mov ecx, dword [eax]
push ecx
push edx
call fcn.10001130
add esp, 8
mov eax, dword [0x10011108]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret