Function at 0x10002830
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 0x10002887
mov eax, dword [esp + 0x60]
cmp eax, 0x14
jbe 0x10002879
mov dword [esi + 0x30], 3
jmp 0x100028a9
cmp eax, 0xa
jbe 0x100028a1
mov dword [esi + 0x30], 2
jmp 0x100028a9
mov eax, dword [esi + 0x10]
imul eax, dword [esi + 0x14]
cmp eax, 0xafc8
jae 0x1000289a
mov dword [esi + 0x30], ecx
jmp 0x100028a9
cmp dword [esp + 0x60], 0xa
ja 0x100028a6
mov dword [esi + 0x30], ecx
jmp 0x100028a9
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.10003150
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 [0x100153bc]
cmp eax, ebp
je 0x10002901
mov edx, dword [ebx]
mov dword [esp + 0x6c], 1
cmp edx, ecx
je 0x10002905
mov dword [esp + 0x6c], ebp
cmp eax, ebp
je 0x10002917
mov eax, dword [ebx]
mov dword [esp + 0x10], 1
cmp eax, ecx
jne 0x1000291b
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 0x10002962
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 0x1000297a
mov ecx, dword [esp + 0x68]
mov eax, 0x51eb851f
imul ecx, dword [0x100154b8]
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.10002eb0
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 0x100029ec
mov ecx, dword [edi + 0x2c]
mov edx, dword [edi + 0x14]
mov eax, dword [esi + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
push eax
call fcn.1000b9a0
mov ebx, dword [esp + 0x84]
add esp, 0x18
jmp 0x10002a11
mov ebx, dword [esp + 0x6c]
test ebx, ebx
jne 0x10002a11
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.100111f0
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 0x10002a2a
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
jmp 0x10002a37
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.10003000
mov eax, dword [esi + 0x60]
add esp, 0x14
test eax, eax
je 0x10002a57
mov ecx, dword [esi + 0x58]
mov ecx, dword [ecx*4 + 0x10015438]
jmp 0x10002a61
mov edx, dword [esi + 0x58]
mov ecx, dword [edx*4 + 0x100153d8]
test ebx, ebx
jne 0x10002a8c
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.1000f740
add esp, 0x18
jmp 0x10002a90
mov eax, dword [esp + 0x74]
test ebx, ebx
jne 0x10002aa6
mov ecx, dword [esi + 0x58]
mov edx, dword [edi + 0x34]
push ecx
push eax
push edx
push ebp
call fcn.10001cb0
add esp, 0x10
mov ecx, dword [esi + 0x30]
mov ebx, dword [esp + 0x14]
mov edx, dword [0x100153c0]
test ecx, ecx
jne 0x10002ac1
mov eax, dword [edi]
cmp eax, edx
jne 0x10002ac1
test ebx, ebx
je 0x10002ad5
test ecx, ecx
je 0x10002af5
mov eax, dword [edi]
mov ecx, dword [0x100153c8]
cmp eax, ecx
jne 0x10002af5
test ebx, ebx
jne 0x10002af5
cmp eax, edx
jne 0x10002ae2
push esi
call fcn.10003ab0
add esp, 4
mov eax, dword [0x100153cc]
mov edx, dword [esp + 0x64]
mov dword [edi], eax
mov ecx, dword [0x100153cc]
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 [0x100153cc]
add esp, 0x14
cmp ecx, eax
je 0x10002e00
mov eax, dword [esi]
mov ebx, dword [edi + 4]
xor ebp, ebp
lea edx, [eax + 2]
test edx, edx
jbe 0x10002d96
mov ecx, dword [esi + 0x44]
cmp ebp, eax
mov dword [esp + 0x4c], ecx
jae 0x10002bcb
mov eax, dword [esi + 0x60]
test eax, eax
je 0x10002b94
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 0x10002b80
call fcn.10090faa
add esp, 0x1c
xor eax, eax
mov al, byte [0x100153b0]
jmp 0x10002c20
call fcn.100102e0
add esp, 0x1c
xor eax, eax
mov al, byte [0x100153b0]
jmp 0x10002c20
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.10009730
add esp, 0x20
xor eax, eax
mov al, byte [0x100153b0]
jmp 0x10002c20
jne 0x10002bdf
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov cl, byte [0x100153b4]
mov dword [esp + 0x64], ecx
jmp 0x10002bef
mov eax, dword [esp + 0x58]
xor edx, edx
mov dl, byte [0x100153b8]
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.10003f40
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 [0x100153a0]
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.10003e9c
add esp, 0xc
lea edx, [esp + 0x18]
push 1
push 1
push edx
call fcn.10003e9c
mov al, byte [0x10015324]
xor ecx, ecx
mov cl, byte [0x10015328]
add esp, 0xc
inc ecx
lea edx, [esp + 0x18]
push eax
push ecx
push edx
call fcn.10003e9c
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 [0x1001532c]
mov dword [esp + 0x28], ecx
push eax
lea ecx, [esp + 0x1c]
push 0
push ecx
mov dword [esp + 0x38], edx
call fcn.10003e9c
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call fcn.10003f1d
mov eax, dword [esi + 0x60]
add esp, 4
test eax, eax
jne 0x10002ceb
test ebp, ebp
jne 0x10002ceb
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.10003ce4
add esp, 0x10
jmp 0x10002d05
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.10003af0
add esp, 0x14
lea edx, [esp + 0x18]
push edx
call fcn.10003f1d
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.10002e70
mov edx, dword [esp + 0x24]
add esp, 0xc
add edx, eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], edx
call fcn.10003f1d
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
mov cl, byte [0x1001532c]
add esp, 4
sub edx, eax
lea eax, [esp + 0x24]
shr edx, 3
push ecx
push edx
push eax
call fcn.10003e9c
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x78]
mov cl, byte [0x100152b0]
add esp, 0xc
sub edx, eax
lea eax, [esp + 0x30]
shr edx, 3
push ecx
push edx
push eax
call fcn.10003e9c
mov eax, dword [esi]
add esp, 0xc
add ebx, 0x1c
inc ebp
lea ecx, [eax + 2]
cmp ebp, ecx
jb 0x10002b30
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.10003e9c
add esp, 0xc
jmp 0x10002e1f
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 0x10002e41
cmp ecx, eax
jb 0x10002e41
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x54]
test eax, eax
je 0x10002e5b
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 [0x10015108]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret