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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xf4
push ebx
lea eax, [esp + 0x78]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x48], 8
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], eax
cmp edi, eax
je case.0x101555c4.3
cmp dword [edi + 4], 5
jne case.0x101555c4.3
cmp dword [edi + 0x14], eax
je case.0x101555c4.3
mov esi, dword [edi + 0x1c]
imul esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov edx, dword [edx + 0x14]
mov byte [esp + 0x47], al
mov eax, dword [ebp + 0xc]
push ebx
push eax
mov dword [esp + 0x34], esi
call edx
cmp esi, eax
jne case.0x101555c4.3
mov esi, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x58], esi
cmp eax, 0x2a
ja case.0x101555c4.1
movzx eax, byte [eax + 0x1015621c]
jmp dword [eax*4 + 0x1015620c]
mov ecx, dword [esp + 0x50]
push ebx
push edi
push ecx
call fcn.10156310
mov esi, eax
jmp fcn.10156162
push 1
mov eax, esi
call fcn.100a9f30
test al, al
je 0x10155605
cmp dword [esi + 0xc], 0
jne case.0x101555c4.1
mov edi, dword [esi + 8]
push 6
mov eax, edi
call fcn.100a9f30
test al, al
je case.0x101555c4.1
mov eax, edi
jmp 0x10155614
push 6
mov eax, esi
call fcn.100a9f30
test al, al
je case.0x101555c4.1
mov eax, esi
cmp dword [eax + 0x18], 5
jne case.0x101555c4.1
lea ecx, [esp + 0x58]
call fcn.1010ee70
test eax, eax
jl 0x10155638
mov esi, dword [esp + 0x58]
push 5
mov eax, esi
call fcn.100a9f30
test al, al
jne case.0x101555c4.1
mov esi, dword [esp + 0x38]
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x70], edi
cmp esi, edi
je 0x101556c7
cmp dword [esi + 4], 5
jne 0x101556c7
mov ebx, dword [esi + 0x1c]
imul ebx, dword [esi + 0x18]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x38], ebx
cmp ebx, 8
ja 0x10155696
mov eax, 8
sub eax, ebx
mov dword [esp + 0x48], eax
mov eax, ebx
shl eax, 4
lea edx, [esp + 0x80]
lea ecx, [esp + eax + 0x80]
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
jmp 0x101556c7
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x101556c3
mov esi, 0x8007000e
jmp fcn.10156162
mov edi, dword [esp + 0x70]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x10155703
cmp dword [eax + 4], 5
jne 0x10155703
mov edi, dword [eax + 0x1c]
imul edi, dword [eax + 0x18]
mov dword [esp + 0x58], eax
mov dword [esp + 0x70], edi
cmp edi, dword [esp + 0x48]
ja 0x10155749
mov eax, dword [esp + 0x28]
sub dword [esp + 0x48], edi
mov ecx, edi
shl ecx, 4
mov dword [esp + 0x34], eax
add eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 8]
cmp byte [eax + 0x2c], 0
je 0x10155776
cmp dword [esp + 0x4c], 0
je 0x10155731
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push ebx
push edx
call fcn.10155530
mov esi, eax
test esi, esi
jl fcn.10156162
cmp dword [esp + 0x58], 0
je 0x101557c0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x58]
push eax
push edi
push ecx
jmp 0x101557ad
xor ecx, ecx
mov eax, edi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
jne 0x10155703
mov esi, 0x8007000e
jmp fcn.10156162
cmp dword [esp + 0x58], 0
je 0x1015579b
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x50]
push edx
push edi
push eax
call fcn.10155530
mov esi, eax
test esi, esi
jl fcn.10156162
cmp dword [esp + 0x4c], 0
je 0x101557c0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
push ecx
push ebx
push edx
mov ecx, dword [esp + 0x5c]
call fcn.10155530
mov esi, eax
test esi, esi
jl fcn.10156162
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x20]
cmp eax, 0x23
ja case.0x101557d6.3
movzx eax, byte [eax + 0x10156268]
jmp dword [eax*4 + 0x10156248]
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x101558f6
cmp ebx, 1
jne 0x10155824
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x10155f1c
mov edi, dword [ebp + 0x10]
lea ecx, [ecx]
mov eax, dword [esp + 0x30]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
inc ebx
add edi, 0x10
cmp ebx, dword [esp + 0x2c]
jb 0x10155800
xor esi, esi
jmp fcn.10156162
cmp dword [esp + 0x2c], ebx
je 0x101558b4
mov eax, dword [ecx + 0x18]
cmp eax, dword [edx + 0x18]
ja 0x101558b4
mov edi, dword [ecx + 0x1c]
mov edx, dword [esp + 0x4c]
cmp edi, dword [edx + 0x1c]
ja 0x101558b4
mov dword [esp + 0x28], 0
test eax, eax
jbe 0x10155f1c
xor ebx, ebx
test edi, edi
jbe 0x1015589c
lea esp, [esp]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x1c]
mov ecx, dword [esp + 0x28]
imul eax, ecx
imul edi, ecx
add eax, ebx
add edi, ebx
shl eax, 4
add eax, dword [esp + 0x30]
shl edi, 4
add edi, dword [ebp + 0x10]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
inc ebx
cmp ebx, edi
jb 0x10155860
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 8]
inc eax
mov dword [esp + 0x28], eax
cmp eax, dword [edx + 0x18]
jb 0x10155856
xor esi, esi
jmp fcn.10156162
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x10155f1c
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x30]
sub eax, edi
mov dword [esp + 0x28], eax
jmp 0x101558d4
mov eax, dword [esp + 0x28]
add eax, edi
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
inc ebx
add edi, 0x10
cmp ebx, dword [esp + 0x2c]
jb 0x101558d0
xor esi, esi
jmp fcn.10156162
mov eax, dword [ecx + 0x24]
test eax, eax
je case.0x101555c4.3
cmp dword [eax + 4], 6
jne 0x10155938
mov ecx, dword [eax + 0x18]
add eax, 0x18
cmp ecx, 5
je case.0x101555c4.3
cmp ecx, 7
je case.0x101555c4.3
mov edi, dword [ebp + 0x10]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
xor esi, esi
jmp fcn.10156162
test eax, eax
je case.0x101555c4.3
cmp dword [eax + 4], 1
jne case.0x101555c4.3
mov ebx, eax
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x10155a6e
cmp dword [eax + 4], 6
jne 0x10155997
mov ecx, dword [eax + 0x18]
add eax, 0x18
cmp ecx, 5
je case.0x101555c4.3
cmp ecx, 7
je case.0x101555c4.3
mov edi, dword [ebp + 0x10]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
dec dword [ebp + 0xc]
add dword [ebp + 0x10], 0x10
jmp 0x10155a6e
test eax, eax
je 0x10155a6e
cmp dword [eax + 4], 5
jne 0x10155a6e
mov ebx, dword [eax + 0x1c]
imul ebx, dword [eax + 0x18]
cmp ebx, dword [esp + 0x48]
ja 0x101559c0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x6c], eax
jmp 0x101559e7
xor ecx, ecx
mov eax, ebx
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x6c], eax
test eax, eax
je 0x1015576c
push eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 8]
push ebx
push ecx
mov ecx, dword [esp + 0x5c]
call fcn.10155530
mov esi, eax
test esi, esi
jl fcn.10156162
mov dword [esp + 0x70], 0
test ebx, ebx
jbe 0x10155a46
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x6c]
sub eax, edi
mov dword [esp + 0x38], eax
lea ecx, [ecx]
mov edx, dword [esp + 0x38]
lea eax, [edx + edi]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x70]
inc eax
add edi, 0x10
mov dword [esp + 0x70], eax
cmp eax, ebx
jb 0x10155a20
mov eax, dword [esp + 0x6c]
cmp eax, dword [esp + 0x28]
je 0x10155a61
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x6c], 0
sub dword [ebp + 0xc], ebx
shl ebx, 4
add dword [ebp + 0x10], ebx
mov ebx, dword [esp + 0x58]
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0x58], ebx
test ebx, ebx
jne 0x10155950
xor esi, esi
jmp fcn.10156162
mov ecx, dword [esp + 0x34]
lea esi, [esp + 0x38]
call fcn.10155190
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x2c]
push eax
push esi
push 0
push edi
call fcn.101dd180
xor ecx, ecx
cmp edx, ecx
jb 0x10155b7c
ja 0x10155b57
cmp eax, ebx
jb 0x10155b7c
mov ecx, dword [ebp + 8]
push 0x1008e004
call fcn.100a47a0
mov esi, dword [esp + 0x54]
mov ecx, 0xbd6
mov edx, eax
call fcn.1010e980
add esp, 4
jmp case.0x101555c4.3
mov dword [esp + 0x28], 0
test edi, edi
jbe 0x10155bc6
imul esi, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
shl esi, 4
add esi, dword [esp + 0x30]
mov ebx, esi
lea esp, [esp]
add byte [eax], al
mov ebx, dword [ecx + 0x28]
mov eax, dword [ebx + 4]
cmp eax, 6
jne 0x10155c3d
lea ecx, [ebx + 0x18]
lea esi, [esp + 0x38]
call fcn.10155190
mov esi, eax
test esi, esi
jl fcn.10156162
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jbe 0x10155c36
mov ebx, dword [esp + 0x38]
mov edi, dword [ebp + 0x10]
shl ebx, 4
add ebx, dword [esp + 0x30]
jmp 0x10155c10
mov eax, ebx
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x28]
inc eax
add ebx, 0x10
add edi, 0x10
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jb 0x10155c10
xor esi, esi
jmp fcn.10156162
cmp eax, 1
jne case.0x101555c4.3
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
jbe 0x10155f1c
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
add ecx, 0x18
lea esi, [esp + 0x38]
call fcn.10155190
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x38]
shl eax, 4
add eax, dword [esp + 0x30]
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x28]
mov ebx, dword [ebx + 0xc]
inc eax
add edi, 0x10
mov dword [esp + 0x28], eax
cmp eax, dword [esp + 0x2c]
jb 0x10155c5c
xor esi, esi
jmp fcn.10156162
mov dword [esp + 0x48], 0
test ebx, ebx
jbe 0x10155f1c
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x38], 0
jbe 0x10155ea2
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ebx, dword [ebp + 0x10]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
lea edi, [ebx + eax]
add ecx, edi
lea esi, [esp + 0x58]
call fcn.10155190
mov esi, eax
test esi, esi
jl fcn.10156162
mov ecx, edi
lea esi, [esp + 0x50]
call fcn.10155190
mov esi, eax
test esi, esi
jl fcn.10156162
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
add eax, 0xfffffff2
mov dword [esp + 0x70], 2
cmp eax, 0xa
ja case.0x10155dd1.16
movzx eax, byte [eax + 0x101562a4]
jmp dword [eax*4 + 0x1015628c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
and ecx, 0x1f
call fcn.101ddd50
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp case.0x10155dd1.16
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
and ecx, 0x1f
cmp dword [ebx], 2
jne 0x10155e1c
call fcn.101de040
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp case.0x10155dd1.16
call fcn.101de070
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
jmp case.0x10155dd1.16
mov ecx, dword [esp + 0x50]
and ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
and edx, dword [esp + 0x5c]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
jmp case.0x10155dd1.16
mov eax, dword [esp + 0x50]
or eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
or ecx, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
jmp case.0x10155dd1.16
mov edx, dword [esp + 0x50]
xor edx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
xor eax, dword [esp + 0x5c]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x70]
mov edi, ebx
call fcn.10155040
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x38]
inc eax
add ebx, 0x10
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x2c]
jb 0x10155d7b
xor esi, esi
jmp fcn.10156162
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x10155f1c
mov edi, dword [ebp + 0x10]
mov eax, dword [esp + 0x30]
sub eax, edi
mov dword [esp + 0x28], eax
jmp fcn.10155ec4
mov byte [esp + 0x47], 1
mov dword [esp + 0x38], 0
test ebx, ebx
jbe 0x10155f75
mov edi, dword [esp + 0x30]
jmp 0x10155f40
mov edx, dword [edi]
cmp edx, 3
ja case.0x101555c4.3
lea ecx, [edi + 8]
mov eax, edi
call fcn.10155220
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x38]
inc eax
mov dword [edi], 3
add edi, 0x10
mov dword [esp + 0x38], eax
cmp eax, ebx
jb 0x10155f40
cmp dword [esp + 0x70], 0
mov dword [esp + 0x38], 0
jbe 0x10155fc7
mov edi, dword [esp + 0x34]
jmp 0x10155f90
mov edx, dword [edi]
cmp edx, 3
ja case.0x101555c4.3
lea ecx, [edi + 8]
mov eax, edi
call fcn.10155220
mov esi, eax
test esi, esi
jl fcn.10156162
mov eax, dword [esp + 0x38]
inc eax
mov dword [edi], 3
add edi, 0x10
mov dword [esp + 0x38], eax
cmp eax, dword [esp + 0x70]
jb 0x10155f90
cmp dword [esp + 0x4c], 0
mov eax, dword [esp + 0x2c]
je 0x10155fda
cmp ebx, eax
jne case.0x101555c4.3
cmp dword [esp + 0x58], 0
je 0x10155feb
cmp dword [esp + 0x70], eax
jne case.0x101555c4.3
xor ebx, ebx
test eax, eax
jbe 0x10155f1c
mov ecx, dword [esp + 0x34]
fldz
mov edx, dword [esp + 0x30]
fld1
mov edi, dword [ebp + 0x10]
sub edx, ecx
lea esi, [ecx + 8]
mov dword [esp + 0x28], edx
sub edi, ecx