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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, ecx
mov dword [ebp - 8], 7
push esi
push edi
mov word [ebp - 0x1c], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1015b751
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.100070c0
push 1
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], 0
push 0xd
push eax
mov dword [ebp - 0x28], 0
call fcn.10006680
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x30]
add esp, 0x10
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 8
jb 0x1015be03
cmp dword [esi + 0x14], 8
jb 0x1015b7bd
mov esi, dword [esi]
push esi
call sub.msvcrt.dll__wtoi
mov dword [ebx], eax
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x1015b7d6
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 4]
call fcn.10002790
mov edx, dword [ebp - 0x20]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015b810
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x30
cmp dword [eax + 0x14], 8
jb 0x1015b81e
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__wtoi
mov edx, dword [ebp - 0x30]
add esp, 4
add edx, 0x48
mov dword [ebx + 8], eax
cmp dword [edx + 0x14], 8
jb 0x1015b838
mov edx, dword [edx]
lea eax, [ebx + 0xc]
test edx, edx
jne 0x1015b843
xor ecx, ecx
jmp 0x1015b862
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x1015b850
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015b850
sub ecx, edi
lea eax, [ebx + 0xc]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.10003740
mov eax, dword [ebp - 0x30]
add eax, 0x60
cmp dword [eax + 0x14], 8
jb 0x1015b879
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__wtoi
mov dword [ebx + 0x10], eax
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x78
cmp dword [eax + 0x14], 8
jb 0x1015b893
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x14]
call fcn.10002790
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015b8ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
add edx, 0x90
cmp dword [edx + 0x14], 8
jb 0x1015b8db
mov edx, dword [edx]
lea eax, [ebx + 0x18]
test edx, edx
jne 0x1015b8e6
xor ecx, ecx
jmp 0x1015b902
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x1015b8f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015b8f0
sub ecx, edi
lea eax, [ebx + 0x18]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.10003740
mov edx, dword [ebp - 0x30]
add edx, 0xa8
cmp dword [edx + 0x14], 8
jb 0x1015b91c
mov edx, dword [edx]
lea eax, [ebx + 0x1c]
test edx, edx
jne 0x1015b927
xor ecx, ecx
jmp 0x1015b942
mov ecx, edx
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1015b930
sub ecx, edi
lea eax, [ebx + 0x1c]
sar ecx, 1
push ecx
push edx
mov ecx, eax
call fcn.10003740
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov edi, dword [ebp - 0x30]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xe
jb 0x1015ba97
add edi, 0xc0
cmp dword [edi + 0x14], 8
jb 0x1015b97b
mov edi, dword [edi]
push edi
call sub.msvcrt.dll__wtoi
mov dword [ebx + 0x20], eax
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0xd8
cmp dword [eax + 0x14], 8
jb 0x1015b997
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x24]
call fcn.10002790
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015b9ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
add eax, 0xf0
cmp dword [eax + 0x14], 8
jb 0x1015b9de
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__wtoi
mov dword [ebx + 0x28], eax
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x108
cmp dword [eax + 0x14], 8
jb 0x1015b9fa
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x2c]
call fcn.10002790
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015ba31
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x120
cmp dword [eax + 0x14], 8
jb 0x1015ba41
mov eax, dword [eax]
push eax
call sub.msvcrt.dll__wtoi
mov dword [ebx + 0x30], eax
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x138
cmp dword [eax + 0x14], 8
jb 0x1015ba5d
mov eax, dword [eax]
push ecx
mov ecx, esp
push eax
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x34]
call fcn.10002790
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015ba94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0xf
jb 0x1015bd42
cmp dword [edi + 0x160], 0
jbe 0x1015bd42
add edi, 0x150
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
cmp dword [edi + 0x14], 8
jb 0x1015bae6
mov edi, dword [edi]
push ecx
mov ecx, esp
push edi
call fcn.10002490
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1015b420
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x24]
push 0x1020452c
mov dword [ebp - 0x24], eax
call fcn.10023e80
test al, al
jne 0x1015bb2c
push 3
push 0x1020452c
lea ecx, [ebp - 0x24]
call fcn.10003740
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.101b1a50
mov edx, dword [ebp - 0x24]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bb5a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4c]
xor edi, edi
sub eax, dword [ebp - 0x50]
sar eax, 2
mov dword [ebp - 0x44], edi
test eax, eax
je 0x1015bd1d
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x40], eax
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x24]
push 0x10202c44
mov dword [ebp - 0x24], eax
call fcn.10023e80
test al, al
jne 0x1015bbe1
push 1
push 0x10202c44
lea ecx, [ebp - 0x24]
call fcn.10003740
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x50]
lea eax, [eax + edi*4]
push eax
call fcn.101b1a50
mov edx, dword [ebp - 0x24]
add esp, 0xc
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bc12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x5c]
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 8
je 0x1015bc67
lea ecx, [ebp - 0x5c]
call fcn.1002a3c0
mov edx, dword [ebp - 0x38]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bc44
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bd08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x1015bd08
push ecx
lea ecx, [ebp - 0x40]
call fcn.10002790
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x3c]
add eax, 4
push eax
call fcn.10002790
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x38], eax
cmp dword [ebx + 0x48], eax
je 0x1015bcbc
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
push eax
call fcn.10002a60
mov ecx, dword [ebp - 0x38]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [ebp - 0x3c]
add eax, 0xfffffff0
push eax
call fcn.10002a60
mov ecx, dword [ebp - 0x38]
add eax, 0x10
add esp, 8
mov dword [ecx + 4], eax
add dword [ebx + 0x44], 8
jmp 0x1015bcc9
lea ecx, [ebp - 0x40]
push ecx
push eax
lea ecx, [ebx + 0x40]
call fcn.10069460
lea ecx, [ebp - 0x5c]
call fcn.1002a3c0
mov edx, dword [ebp - 0x3c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bceb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x40]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bd05
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
inc edi
sub eax, dword [ebp - 0x50]
sar eax, 2
mov dword [ebp - 0x44], edi
cmp edi, eax
jb 0x1015bb70
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bd37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x50]
call fcn.1002a3c0
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x10
jb 0x1015bda5
add edi, 0x168
cmp dword [edi + 0x14], 8
jb 0x1015bd6b
mov edi, dword [edi]
push ecx
mov ecx, esp
push edi
call fcn.10002490
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x38]
call fcn.10002790
mov edx, dword [ebp - 0x34]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015bda2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x11
jb 0x1015be03
add edi, 0x180
cmp dword [edi + 0x14], 8
jb 0x1015bdce
mov edi, dword [edi]
push ecx
mov ecx, esp
push edi
call fcn.10002490
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.1015b420
push eax
lea ecx, [ebx + 0x3c]
call fcn.10002790
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1015be03
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.10021060
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x1015be41
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1015be37
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1015be56
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.101e6c40
int3