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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x155f5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x48], 0
jne 0x155a1b
mov eax, dword [ebp - 4]
call fcn.00156224
test al, al
jne 0x155a1f
xor eax, eax
jmp 0x155a21
mov al, 1
mov byte [ebx], al
cmp byte [ebx], 0
je 0x155a2f
mov eax, dword [ebp - 4]
mov byte [eax + 0x48], 1
mov eax, dword [ebp - 8]
call fcn.00013d2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.001586e8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x3c], 0
jle 0x155a56
mov eax, dword [ebp - 4]
dec dword [eax + 0x3c]
jmp 0x155f3f
mov esi, dword [0x1c5104]
mov esi, dword [esi]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
jle 0x155dbb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x60], 0
jne 0x155dbb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
jne 0x155dbb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x155ab5
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x155ab5
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x44], edx
xor esi, esi
jmp 0x155ac7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x50], 0
je 0x155ac7
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 0
xor esi, esi
mov eax, dword [ebp - 4]
sub dword [eax + 0x30], esi
jmp 0x155d78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov ebx, eax
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x9c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa0]
test eax, eax
jge 0x155b27
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp dword [eax + 0x7c], 0
jl 0x155b4f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa0]
neg eax
mov edx, dword [ebp - 4]
add dword [edx + 0x30], eax
jmp 0x155b4f
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa0]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x7c]
xor eax, eax
call fcn.000320cc
imul edi, eax
shr edi, 8
mov eax, dword [ebp - 4]
add dword [eax + 0x30], edi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call fcn.00020b38
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x134]
test al, al
je 0x155b77
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, ebx
call fcn.00020b38
mov eax, dword [ebp - 4]
inc dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x38]
jg 0x155ba6
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x38], edx
mov eax, dword [ebp - 4]
inc dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
jle 0x155c1b
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edi, eax
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
call dword [edx + 0x7c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
sub eax, dword [edx + 0x30]
push eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x78]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
sub eax, dword [edx + 0x2c]
lea ecx, [ebp - 0x14]
pop edx
call fcn.00020204
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x70], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x74], edx
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [edi + 4]
mov dword [edx + 0x78], eax
jmp 0x155c76
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x78]
mov edi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub edi, dword [eax + 0x2c]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x10]
add edi, eax
push edi
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
call dword [edx + 0x7c]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub edx, dword [eax + 0x30]
lea ecx, [ebp - 0x14]
pop eax
call fcn.00020204
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov dword [eax + 0x70], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x74], edx
mov eax, dword [ebx + 0x18]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
mov dword [edx + 0x78], eax
mov eax, ebx
mov edx, dword [0x1521ac]
call fcn.0001317c
test al, al
je 0x155d29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp byte [eax + 0x80], 0
je 0x155d78
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x155cb7
mov eax, dword [ebp - 4]
add eax, 0x40
mov edx, 0x155f70
call fcn.00013fb4
lea edx, [ebp - 0x18]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
add eax, 0x40
call fcn.00013fb4
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], 1
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xa0]
test eax, eax
jg 0x155dbb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
jle 0x155d78
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x38]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov edx, dword [0x1521ac]
call fcn.0001317c
test al, al
je 0x155dbb
jmp 0x155d78
mov eax, ebx
mov edx, dword [0x15123c]
call fcn.0001317c
test al, al
je 0x155d57
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
call fcn.00013fb4
mov eax, dword [ebp - 8]
jmp 0x155d78
mov eax, ebx
mov edx, dword [0x151754]
call fcn.0001317c
test al, al
je 0x155d78
mov eax, dword [ebp - 8]
mov edx, 0x155f7c
call fcn.00013fb4
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x34]
jle 0x155dbb
mov eax, dword [ebp - 4]
cmp dword [eax + 0x30], 0
jg 0x155dbb
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x34]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x24]
neg edx
add eax, edx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 4]
cmp eax, dword [edx + 0x14]
jle 0x155ad2
shl esi, 8
mov eax, dword [ebp - 4]
add dword [eax + 0x44], esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov ebx, dword [eax + 0x44]
test ebx, ebx
jg 0x155dd8
mov edi, 0xff
jmp 0x155de3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
cdq
idiv ebx
mov edi, eax
test edi, edi
jle 0x155e74
mov eax, ebx
mov edx, 1
call fcn.000320cc
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
pop edx
mov ecx, edx
cdq
idiv ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
test eax, eax
jle 0x155e74
mov ebx, eax
dec ebx
cmp ebx, 0
jl 0x155e74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call fcn.00020ce4
mov esi, eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x98]
mov edx, eax
add edx, edi
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x9c]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x114]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x98]
cmp eax, 0xff
jl 0x155e6e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
mov edx, ebx
call fcn.00020b84
dec ebx
cmp ebx, 0xffffffff
jne 0x155e1f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x155e9e
inc esi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, ebx
call fcn.00020ce4
mov edx, dword [eax]
call dword [edx + 0x138]
inc ebx
dec esi
jne 0x155e85
mov eax, dword [ebp - 4]
cmp dword [eax + 0x40], 0
je 0x155f3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2c]
cmp dword [eax + 8], 0
jne 0x155f3f
mov dl, 1
mov eax, dword [0x73610]
call fcn.00078f78
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x155f2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00078ff4
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x155f17
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00078fc8
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00158700
inc ebx
dec esi
jne 0x155ef8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x155f34
mov eax, dword [ebp - 0xc]
call fcn.00013004
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x155f61
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00013d50
ret