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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x10052004]
xor eax, esp
mov dword [esp + 0x210], eax
cmp dword [ebp + 8], 0
mov eax, ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 4], ecx
mov ecx, dword [ebp + 0x20]
movzx edx, word [eax + 0x4c0]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x24]
push ebx
mov dword [esp + 0x64], ecx
lea ecx, [eax + 0x23c]
push esi
mov dword [esp + 0x50], ecx
movzx ecx, word [eax + 0x4c2]
push edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], 0
je 0x10015528
cmp dword [ebp + 0xc], 0
je 0x10015528
cmp dword [eax + 0x490], 0
jne 0x10015528
mov edx, 0x40
add eax, 0x328
mov dword [esp + 0x30], edx
mov dword [esp + 0x54], eax
lea ecx, [edx - 0x3a]
mov edi, dword [ebp + 0x10]
lea eax, [edx - 1]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x80], eax
movzx ebx, ax
mov eax, edi
movzx ecx, cx
mov dword [esp + 0x2c], ecx
call fcn.10028c80
mov dword [esp + 0xc], eax
mov ecx, edi
and ecx, ebx
movzx eax, cx
mov ecx, 0
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
add eax, edi
mov dword [esp + 0x1c], eax
adc ecx, dword [ebp + 0x14]
add eax, 0xffffffff
mov edx, ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
adc edx, 0xffffffff
call fcn.10028c80
mov esi, eax
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 0x1c]
dec edi
add eax, edi
mov dword [esp + 0x48], esi
and eax, ebx
mov ebx, dword [esp + 0x44]
movzx edi, word [ebx + 0x234]
lea ecx, [ebx + 0x20c]
movzx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
cmp edi, 4
jne 0x10015b6d
shr eax, 2
lea edx, [esp + 0x70]
push edx
push 0xfffffffffffffffe
push 0
push eax
call fcn.1001f720
mov edi, eax
cmp edi, 0x302ff
je 0x1003231b
test edi, edi
js 0x100323b9
movzx eax, word [ebx + 0x234]
mov ecx, eax
cmp ecx, 4
jne 0x10015b76
mov edx, dword [ebp + 8]
mov ecx, edx
shr ecx, 2
and edx, 3
mov dword [esp + 0x20], ecx
movzx ecx, dx
shl ecx, 7
add ecx, dword [esp + 0x70]
cmp ax, 4
mov eax, dword [ecx + 0x78]
mov dword [esp + 0x40], eax
ja 0x10015b8d
mov dword [esp + 0x14], 0
mov edx, dword [ebx + 0x214]
lea ecx, [ebx + 0x20c]
test edx, edx
je 0x10032366
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, edx
je 0x10032366
mov edx, dword [ecx + 8]
test edx, edx
je 0x10032351
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, edx
mov edx, dword [esp + 0x20]
mov eax, dword [eax + edx*4]
lea ebx, [edx*4]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x20], eax
test eax, eax
je 0x1003236a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esp + 0x20]
je 0x1003236a
mov edx, dword [ecx + 8]
test edx, edx
je 0x10032358
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, edx
mov edx, dword [esp + 0x18]
mov edx, dword [edx + eax]
test edx, edx
je 0x1003235f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, edx
dec dword [eax + 0x1c]
test edi, edi
js 0x10015827
cmp dword [ebx + 0x4a8], 0
jne 0x100158a5
mov eax, dword [esp + 0xc]
cmp esi, eax
jb 0x10015a2f
mov ecx, dword [esp + 0x38]
sub esi, eax
movzx ecx, cx
inc esi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x5c]
push ecx
push esi
lea ecx, [esp + 0x90]
push ecx
mov ecx, dword [esp + 0x48]
push 1
push eax
call fcn.10014a90
mov edi, eax
test edi, edi
js 0x10015827
mov eax, dword [esp + 0x80]
xor ecx, ecx
movzx eax, ax
mov dword [esp + 0x34], eax
cmp dword [esp + 0x5c], ecx
jbe 0x10015a6d
lea ecx, [ecx]
movzx eax, cx
lea eax, [eax + eax*2]
mov edx, dword [esp + eax*4 + 0x8c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + eax*4 + 0x90]
cmp edx, esi
ja 0x10015a3c
add dword [esp + 0xc], edx
inc ecx
mov dword [esp + 0x48], ecx
sub esi, edx
jne 0x10015a43
mov eax, dword [esp + 0x28]
movzx eax, ax
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x14]
dec edx
movzx edi, cx
mov ecx, dword [esp + 0x2c]
shl edx, cl
movzx ecx, ax
sub edx, edi
inc ecx
lea eax, [ebx + 0x328]
add ecx, edx
mov dword [esp + 0x18], ecx
cmp eax, dword [esp + 0x54]
jne 0x10015840
cmp ecx, dword [ebp + 0x1c]
ja 0x100323db
mov eax, dword [ebx + 0x484]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100323cd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov edx, dword [eax]
add edx, dword [esp + 0x18]
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x20]
push ecx
push dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
shl eax, cl
mov ecx, edx
add eax, edi
push 0
push eax
call fcn.10014030
mov ecx, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x64]
add ecx, eax
mov dword [esp + 0x24], ecx
test esi, esi
jne 0x10015a4c
mov eax, dword [esp + 0x50]
add eax, ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x21c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100281a0
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [esp + 0x1c]
xor edx, edx
mov ecx, dword [esp + 0x2c]
inc eax
call fcn.10028ac0
mov edi, eax
mov eax, dword [esp + 0x14]
movsx ecx, ax
add edi, ecx
mov ecx, dword [ebx]
mov dword [esp + 0x1c], edi
adc edx, 0
test ecx, ecx
je 0x100323d4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, ecx
mov eax, dword [eax]
lea ecx, [esp + 0x64]
push ecx
push dword [esp + 0x1c]
push dword [esp + 0x18]
mov edi, dword [eax]
push edx
push dword [esp + 0x2c]
mov edi, dword [edi + 0x10]
mov ecx, edi
push eax
call dword [0x100532e8]
call edi
jmp 0x10015803
lea eax, [ebx + 0x328]
cmp eax, dword [esp + 0x54]
je 0x100156f5
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x10015b38
lea eax, [esp + 0x60]
push eax
push 0
push dword [ebp + 8]
call fcn.1001ef90
mov edi, eax
test edi, edi
js 0x100323c4
mov eax, dword [esp + 0x60]
xor edx, edx
movzx ecx, word [ebx + 0x234]
mov eax, dword [eax + 0x74]
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 8]
div ecx
lea ecx, [ebx + 0x20c]
push eax
call fcn.1001f3a0
mov edx, dword [esp + 0x60]
test edi, edi
js 0x10015827
xor ecx, ecx
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x88]
push eax
mov eax, esi
sub eax, dword [esp + 0x1c]
inc eax
push eax
push ecx
push edx
lea ecx, [ebx + 0x23c]
call fcn.1001ccf0
mov edi, eax
test edi, edi
js 0x10015827
cmp edi, 1
je 0x10015960
mov ecx, dword [esp + 0x3c]
push esi
push dword [esp + 0x10]
call fcn.10014580
mov edi, eax
test edi, edi
js 0x10015827
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
test edx, edx
jne 0x10015992
cmp eax, 0xfffffffe
je 0x10015992
push eax
push dword [ebp + 8]
lea ecx, [ebx + 0x20c]
call fcn.1001f1f3
mov edi, eax
test edi, edi
js 0x10015827
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
cmp word [esp + 0x38], 0
jne 0x100159cd
cmp esi, edx
jne 0x10015a2d
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x40]
jne 0x100159b6
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x10015a2b
mov eax, dword [esp + 0x30]
movzx ecx, ax
mov eax, dword [esp + 0x28]
dec ecx
movzx eax, ax
cmp eax, ecx
je 0x10015a2b
mov eax, dword [esp + 0x58]
cmp eax, 0xfffffffe
je 0x10015a2b
cmp esi, edx
jne 0x10015b60
mov ecx, dword [esp + 0x28]
movsx ecx, cx
lea edx, [esp + 0x84]
push edx
push dword [esp + 0x14]
push ecx
push dword [esp + 0x44]
mov ecx, ebx
push eax
push dword [esp + 0x90]
call fcn.10015b9e
mov edi, eax
test edi, edi
js 0x10015827
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0xc]
add dword [esp + 0x10], eax
inc edx
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x38], 0
cmp esi, edx
jae 0x10015aad
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x24]
jmp 0x10015821
mov edx, esi
jmp 0x10015770
mov eax, dword [esp + 0x34]
jmp 0x1001578c
test edi, edi
js 0x10015a71
add dword [esp + 0x10], eax
mov ecx, dword [esp + 0x48]
movzx eax, cx
mov dword [esp + 0x14], 0
cmp eax, dword [esp + 0x5c]
jb 0x10015750
mov ecx, dword [esp + 0x24]
test esi, esi
je 0x1001581b
test edi, edi
js 0x1001581b
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x5c]
push eax
push esi
lea eax, [esp + 0x90]
push eax
push 1
push dword [esp + 0x1c]
call fcn.10014a90
mov edi, eax
test edi, edi
jns 0x10015733
jmp 0x10015827
mov eax, dword [esp + 0x30]
movzx ecx, ax
mov eax, dword [esp + 0x28]
dec ecx
movzx eax, ax
cmp eax, ecx
je 0x100156f5
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x40]
jne 0x10015adc
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x14]
je 0x100156f5
cmp dword [esp + 0x4c], 0xfffffffe
je 0x100156f5
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x3c]
mov edx, esi
sub edx, dword [esp + 0x10]
shl edx, cl
mov ecx, ebx
cwde
sub edx, eax
add edx, dword [esp + 0x14]
push edx
push dword [esp + 0x30]
push 0
push dword [esp + 0x5c]
push dword [esp + 0x8c]
call fcn.10015b9e
mov edi, eax
test edi, edi
js 0x10015827
mov eax, dword [esp + 0x30]
dec esi
dec eax
movzx eax, ax
mov dword [esp + 0x28], eax
jmp 0x100156f5
lea ecx, [esp + 0x68]
dec eax
push ecx
mov ecx, dword [esp + 0x40]
push eax
call fcn.10014610
mov edi, eax
test edi, edi
js 0x10015827
mov edx, dword [esp + 0x68]
mov ecx, 1
jmp 0x1001590d
mov ecx, dword [esp + 0x30]
movzx ecx, cx
dec ecx
jmp 0x100159e1
xor edx, edx
div edi
jmp 0x100155bb
mov eax, dword [ebp + 8]
xor edx, edx
div ecx
mov dword [esp + 0x20], eax
movzx eax, word [ebx + 0x234]
jmp 0x10015601
mov eax, dword [ecx + 0x7c]
mov dword [esp + 0x14], eax
jmp 0x10015624
movzx eax, word [ebx + 0x228]
shr eax, 7
test eax, eax
je 0x100155e0
mov esi, dword [esp + 0x70]
mov ebx, eax
push 0
mov ecx, esi
call fcn.10021009
sub esi, 0xffffff80
sub ebx, 1
jne 0x10032333
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
jmp 0x100155e0
xor eax, eax
jmp 0x10015669
xor eax, eax
jmp 0x100156be
xor eax, eax
jmp 0x100156dd
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
test eax, eax
je 0x10032388
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xf80]
mov eax, dword [eax]
add eax, dword [esp + 0x18]
jmp 0x1003238a
xor eax, eax
lea esi, [esp + 0x74]
push esi
push edx
push dword [ecx + 0x10]
push ecx
mov ecx, eax
call fcn.10037374
mov esi, dword [esp + 0x48]
lea ecx, [ebx + 0x20c]
test eax, eax
js 0x100156e0
mov eax, dword [esp + 0x74]
dec dword [eax + 0x1c]
jmp 0x100156e0
lea ecx, [ebx + 0x20c]
jmp 0x100156e0
mov edx, dword [esp + 0x68]
jmp 0x10015903
xor edx, edx
jmp 0x100157e3
xor eax, eax
jmp 0x1001587c
mov edi, 0x80070057
jmp 0x10015827