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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edx + 0xf]
lea ecx, [edi + 0xf]
and eax, 0xfffffff0
and ecx, 0xfffffff0
xor ebx, ebx
cmp edx, eax
mov dword [esi + 0x144], edx
mov dword [esi + 0x148], edi
jne 0x100159bc
cmp edi, ecx
jne 0x100159bc
mov edx, 1
jmp 0x100159be
xor edx, edx
mov dword [esi + 0x15c], edx
cmp edx, ebx
mov edx, dword [esi + 0x528]
je 0x100159f2
cmp edx, ebx
mov dword [esi + 0x1bb4], 0x10032590
mov dword [esi + 0x1bb8], 0x10032bf0
je 0x10015a14
mov dword [esi + 0x1bb4], 0x10032220
jmp 0x10015a14
cmp edx, ebx
mov dword [esi + 0x1bb4], 0x10032740
mov dword [esi + 0x1bb8], 0x10032d10
je 0x10015a14
mov dword [esi + 0x1bb4], 0x10032360
mov dword [esi + 0x60], ecx
mov ecx, esi
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], eax
mov dword [esi + 0x1a04], 0xffffffc1
mov dword [esi + 0x1a08], 0x3f
mov dword [esi + 0x214], ebx
mov dword [esi + 0x210], ebx
call fcn.10086bd0
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x1001640a
mov edi, dword [esi + 0xb8]
shl edi, 1
lea eax, [edi + edi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10015a81
lea edx, [edi - 1]
cmp edx, ebx
mov ecx, eax
jl 0x10015a83
inc edx
mov byte [ecx + 1], bl
mov byte [ecx], bl
add ecx, 2
dec edx
jne 0x10015a74
jmp 0x10015a83
xor eax, eax
cmp eax, ebx
mov dword [esi + 0xaec], eax
je 0x10016405
mov ecx, dword [esi + 0xb8]
shl ecx, 3
push ecx
mov dword [esi + 0x120], ebx
mov dword [esi + 0x1928], ebx
mov dword [esi + 0x19c0], ebx
mov dword [esi + 0x454], 1
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esi + 0xc0]
shl edx, 2
push edx
mov dword [esi + 0x18b8], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov dword [esi + 0x18bc], eax
mov eax, dword [esi + 0xc0]
shl eax, 2
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, dword [esi + 0x18b8]
add esp, 0xc
cmp ecx, ebx
mov dword [esi + 0x18c0], eax
je 0x10016405
cmp dword [esi + 0x18bc], ebx
je 0x10016405
cmp eax, ebx
je 0x10016405
push 0xc
mov dword [esi + 0x604], ebx
mov dword [esi + 0x18d8], 0xfffffffd
mov dword [esi + 0x18dc], ebx
mov dword [esi + 0x18d4], ebx
mov dword [esi + 0x18e0], ebx
mov dword [esi + 0x43c], ebx
mov dword [esi + 0x18e8], ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1864], eax
je 0x10016405
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1868], eax
je 0x10016405
mov edi, dword [esi + 0xc0]
mov ecx, edi
imul ecx, ecx, 0x70
add ecx, 4
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10015ba5
push fcn.10080230
push edi
mov dword [eax], edi
add eax, 4
push 0x70
push eax
mov dword [ebp + 0xc], eax
call fcn.10013060
mov eax, dword [ebp + 0xc]
jmp 0x10015ba7
xor eax, eax
cmp eax, ebx
mov dword [esi + 0xaf0], eax
je 0x10016405
mov eax, dword [esi + 0xbc]
xor ecx, ecx
cmp eax, ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 4], ecx
jbe 0x10015c5a
jmp 0x10015bd0
mov edx, dword [esi + 0xb8]
xor eax, eax
cmp edx, ebx
jbe 0x10015c48
mov edi, dword [ebp + 0xc]
xor edx, edx
cmp ecx, ebx
sete dl
imul edi, edi, 0x70
mov dword [ebp - 0xc], edx
lea esp, [esp]
mov edx, dword [esi + 0xbc]
dec edx
xor ebx, ebx
cmp ecx, edx
mov ecx, dword [esi + 0xb8]
sete bl
xor edx, edx
shl ebx, 1
dec ecx
cmp eax, ecx
sete dl
xor ecx, ecx
or ebx, edx
mov edx, dword [ebp - 0xc]
shl ebx, 1
or ebx, edx
shl ebx, 1
mov edx, ebx
xor ebx, ebx
cmp eax, ebx
sete cl
add edi, 0x70
or edx, ecx
mov ecx, dword [esi + 0xaf0]
mov dword [ecx + edi - 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xb8]
inc edx
inc eax
cmp eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + 0xc], edx
jb 0x10015bf0
mov eax, dword [esi + 0xbc]
inc ecx
cmp ecx, eax
mov dword [ebp - 4], ecx
jb 0x10015bd0
cmp dword [esi + 0x454], ebx
je 0x10015cc1
mov edi, dword [esi + 0xc0]
mov edx, edi
imul edx, edx, 0x70
add edx, 4
push edx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10015c98
push fcn.10080230
push edi
mov dword [eax], edi
add eax, 4
push 0x70
push eax
mov dword [ebp + 0xc], eax
call fcn.10013060
mov edi, dword [ebp + 0xc]
jmp 0x10015c9a
xor edi, edi
cmp edi, ebx
mov dword [esi + 0x18b4], edi
je 0x10016405
mov ecx, dword [esi + 0xc0]
imul ecx, ecx, 0x70
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push 0x70
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10015cd8
mov ecx, eax
call fcn.10080230
jmp 0x10015cda
xor eax, eax
cmp eax, ebx
mov dword [esi + 0xaf4], eax
je 0x10016405
mov dword [eax + 4], ebx
mov eax, dword [esi + 0xaf4]
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0xaf4]
mov dword [ecx + 0xc], ebx
mov edx, dword [esi + 0xaf4]
mov dword [edx + 0x10], ebx
mov eax, dword [esi + 0xaf4]
mov dword [eax + 0x14], ebx
mov ecx, dword [esi + 0xaf4]
mov dword [ecx + 0x18], ebx
mov edx, dword [esi + 0x18c]
mov ecx, dword [esi + 0x190]
lea eax, [edx*8 - 8]
lea edx, [ecx*4 - 4]
mov dword [esi + 0x1a44], eax
mov eax, dword [esi + 0xb8]
mov dword [esi + 0x1a48], edx
lea edx, [eax + eax*2]
lea ecx, [eax + eax*2]
shl edx, 8
shl ecx, 5
push edx
mov dword [esi + 0x1a10], ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1a14], eax
je 0x10016405
mov eax, dword [esi + 0xb8]
lea eax, [eax + eax*8]
shl eax, 5
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1a18], eax
je 0x10016405
mov eax, dword [esi + 0xc0]
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1a2c], eax
je 0x10016405
mov eax, dword [esi + 0xc0]
lea edx, [eax + eax*8]
shl edx, 2
push edx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
mov dword [esi + 0x1a30], eax
je 0x10016405
push 0x40
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0x40
mov dword [esi + 0x1a1c], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0x40
mov dword [esi + 0x1a20], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
push 0x40
mov dword [esi + 0x1a24], eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, dword [esi + 0x1a1c]
add esp, 0x10
cmp edi, ebx
mov dword [esi + 0x1a28], eax
je 0x10016405
cmp dword [esi + 0x1a20], ebx
je 0x10016405
cmp dword [esi + 0x1a24], ebx
je 0x10016405
cmp eax, ebx
je 0x10016405
xor eax, eax
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x1a20]
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x1a24]
mov ecx, 0x10
rep stosd dword es:[edi], eax
mov edi, dword [esi + 0x1a28]
mov ecx, 0x10
rep stosd dword es:[edi], eax
cmp dword [esi + 8], ebx
mov ecx, dword [esi + 0x1a1c]
jne 0x10015ea3
mov eax, 0x400
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x1a1c]
mov dword [edx], eax
mov ecx, dword [esi + 0x1a20]
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x1a20]
mov dword [edx], eax
mov dword [esi + 0x1b84], 1
jmp 0x10015eca
mov eax, 0x80
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x1a1c]
mov dword [edx], eax
mov ecx, dword [esi + 0x1a20]
mov dword [ecx + 0x20], eax
mov edx, dword [esi + 0x1a20]
mov dword [edx], eax
mov dword [esi + 0x1b84], ebx
mov edi, dword [esi + 0x1a10]
mov ecx, dword [esi + 0xc0]
mov eax, dword [esi + 0x1a18]
mov edx, dword [esi + 0x1a14]
neg edi
cmp ecx, ebx
mov dword [ebp + 0xc], edi
mov dword [ebp - 4], ebx
jbe 0x10015f10
mov edi, edi
mov ecx, dword [esi + 0xaf0]
and dword [ecx + ebx], 0xfffffff7
add ecx, ebx
mov ecx, dword [ebp - 4]
inc ecx
add ebx, 0x70
cmp ecx, dword [esi + 0xc0]
mov dword [ebp - 4], ecx
jb 0x10015ef0
xor ebx, ebx
mov dword [ebp - 4], ebx
test byte [ebp - 4], 1
je 0x10015f22
mov edi, dword [esi + 0x1a10]
mov dword [ebp + 0xc], edi
cmp dword [esi + 0xb8], ebx
mov dword [ebp - 0xc], ebx
jbe 0x100160db
jmp 0x10015f35
xor ebx, ebx
mov dword [ebp - 8], ebx
lea ecx, [edx - 0x40]
jmp 0x10015f40
cmp ebx, 5
ja case.default.0x10015f49
jmp dword [ebx*4 + 0x10016414]
mov ebx, dword [esi + 0x1a1c]
mov dword [eax], ebx
lea ebx, [ecx - 0x100]
mov dword [eax + 4], ebx
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 8], ebx
mov ebx, 0x20
sub ebx, edi
lea ebx, [edx + ebx*4]
mov dword [eax + 0xc], ebx
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 0x10], ebx
lea edi, [edi*4 + 0xc0]
mov ebx, edx
sub ebx, edi
mov dword [eax + 0x14], ebx
jmp 0x100160a6
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], ecx
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 0x20], ebx
mov ebx, edi
neg ebx
mov dword [ebp - 0x10], ebx
lea ebx, [edx + ebx*4 + 0x80]
mov dword [eax + 0x24], ebx
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 0x28], ebx
mov ebx, dword [ebp - 0x10]
lea ebx, [edx + ebx*4 + 0x40]
mov dword [eax + 0x2c], ebx
jmp case.default.0x10015f49
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 0x30], ebx
lea ebx, [ecx - 0x100]
mov dword [eax + 0x34], ebx
lea ebx, [ecx - 0x40]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], ebx
mov ebx, dword [esi + 0x1a1c]
mov dword [eax + 0x40], ebx
lea ebx, [ecx - 0x180]
mov dword [eax + 0x44], ebx
jmp case.default.0x10015f49
lea ebx, [ecx - 0x40]
mov dword [eax + 0x54], ebx
mov dword [eax + 0x50], ebx
lea ebx, [ecx - 0x80]
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x5c], ebx
mov dword [eax + 0x58], ebx
jmp case.default.0x10015f49
mov ebx, dword [esi + 0x1a20]
mov dword [eax + 0x60], ebx
lea ebx, [ecx - 0x140]
mov dword [eax + 0x64], ebx
mov ebx, dword [esi + 0x1a20]
mov dword [eax + 0x68], ebx
shl edi, 2
mov ebx, edx
sub ebx, edi
mov dword [eax + 0x6c], ebx
mov edi, dword [esi + 0x1a20]
mov dword [eax + 0x70], edi
mov edi, dword [ebp + 0xc]
lea edi, [edi*4 + 0x180]
mov ebx, edx
sub ebx, edi
mov dword [eax + 0x74], ebx
jmp 0x100160a6
mov ebx, dword [esi + 0x1a20]
mov dword [eax + 0x78], ebx
lea ebx, [ecx - 0x140]
mov dword [eax + 0x7c], ebx
mov ebx, dword [esi + 0x1a20]
mov dword [eax + 0x80], ebx
shl edi, 2
mov ebx, edx
sub ebx, edi
mov dword [eax + 0x84], ebx
mov edi, dword [esi + 0x1a20]
mov dword [eax + 0x88], edi
mov edi, dword [ebp + 0xc]
lea edi, [edi*4 + 0x180]
mov ebx, edx
sub ebx, edi
mov dword [eax + 0x8c], ebx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
add edx, 0x40
add ecx, 0x40
inc ebx
cmp ebx, 6
mov dword [ebp - 8], ebx
jl 0x10015f40
mov ecx, dword [ebp - 0xc]
mov ebx, dword [esi + 0xb8]
add eax, 0x90
inc ecx
cmp ecx, ebx
mov dword [ebp - 0xc], ecx
jb 0x10015f33
xor ebx, ebx
mov ecx, dword [ebp - 4]
inc ecx
cmp ecx, 2
mov dword [ebp - 4], ecx
jb 0x10015f13
mov ecx, dword [esi + 0x130]
push ebx
call fcn.1007fec0
mov edx, dword [eax]
mov ecx, dword [esi + 0x130]
push 1
mov dword [esi + 0x9b4], edx
call fcn.1007fec0
mov eax, dword [eax]
mov ecx, dword [esi + 0x130]
push 2
mov dword [esi + 0x9b8], eax
call fcn.1007fec0
mov ecx, dword [eax]
mov edx, dword [esi + 0x5c]
mov dword [esi + 0x9bc], ecx
mov ecx, dword [esi + 0x60]
add ecx, 0x40
mov edi, dword [esi + 0x9b4]
add edx, 0x40
imul ecx, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x9b8]
add ecx, 0x20
add eax, 0x20
imul ecx, eax
mov edx, ecx
shr ecx, 2
mov eax, 0x80808080
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x9bc]
add ecx, 0x20
add eax, 0x20
imul ecx, eax
mov edx, ecx
shr ecx, 2
mov eax, 0x80808080
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xc0]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
cmp edi, ebx
mov dword [esi + 0xf60], edi
je 0x10016405
mov ecx, dword [esi + 0xc0]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x18c]
lea ecx, [eax*8 - 8]
push 0x50
mov dword [esi + 0x1a0c], ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x1001620c
mov ecx, dword [esi + 0x12c]
lea edx, [ecx + 0x10]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.1007ff80
jmp 0x1001620e
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xb00], eax
je 0x100163fa
cmp ecx, ebx
jne 0x100163fa
push ebx
mov ecx, eax
call fcn.1007fec0
mov edx, dword [eax]
mov ecx, dword [esi + 0xb00]
push 1
mov dword [esi + 0x9c0], edx
call fcn.1007fec0
mov eax, dword [eax]
mov ecx, dword [esi + 0xb00]
push 2
mov dword [esi + 0x9c4], eax
call fcn.1007fec0
mov ecx, dword [eax]
push 0x50
mov dword [esi + 0x9c8], ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10016287
mov ecx, dword [esi + 0x12c]
lea edx, [ecx + 0x10]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.1007ff80
jmp 0x10016289
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0xb04], eax
je 0x100163fa
cmp ecx, ebx
jne 0x100163fa
push ebx
mov ecx, eax
call fcn.1007fec0
mov edx, dword [eax]
mov ecx, dword [esi + 0xb04]
push 1
mov dword [esi + 0x9cc], edx
call fcn.1007fec0
mov eax, dword [eax]
mov ecx, dword [esi + 0xb04]
push 2
mov dword [esi + 0x9d0], eax
call fcn.1007fec0
mov ecx, dword [eax]
mov dword [esi + 0x9d4], ecx
mov ecx, esi
call fcn.10013090
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10016309
mov ecx, dword [esi + 0x12c]
lea edx, [ecx + 0x10]
push edx
push ecx
lea ecx, [ebp + 8]
push ecx
mov ecx, eax
call fcn.1007ff80
jmp 0x1001630b
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18a0], eax
je 0x100163fa
cmp ecx, ebx
jne 0x100163fa
push ebx
mov ecx, eax
call fcn.1007fec0
mov edx, dword [eax]
mov ecx, dword [esi + 0x18a0]
push 1
mov dword [esi + 0x18a4], edx
call fcn.1007fec0
mov eax, dword [eax]
mov ecx, dword [esi + 0x18a0]
push 2
mov dword [esi + 0x18a8], eax
call fcn.1007fec0
mov ecx, dword [eax]
cmp dword [esi + 0x454], ebx
mov dword [esi + 0x18ac], ecx
je 0x100163ef
push 0x50
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x10016390
mov edx, dword [esi + 0x12c]
lea ecx, [edx + 0x10]
push ecx
push edx
lea edx, [ebp + 8]
push edx
mov ecx, eax
call fcn.1007ff80
jmp 0x10016392
xor eax, eax
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [esi + 0x18b0], eax
je 0x100163fa
cmp ecx, ebx
jne 0x100163fa
push ebx
mov ecx, eax
call fcn.1007fec0
mov eax, dword [eax]
mov ecx, dword [esi + 0x18b0]
push 1
mov dword [esi + 0x18c4], eax
call fcn.1007fec0
mov ecx, dword [eax]
mov dword [esi + 0x18c8], ecx
mov ecx, dword [esi + 0x18b0]
push 2
call fcn.1007fec0
mov edx, dword [eax]
mov eax, dword [esi + 0x19c]
add eax, dword [esi + 0x18c4]
mov dword [esi + 0x18cc], edx
mov dword [esi + 0x18d0], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8