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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x164]
cmp ebx, dword [esi + 0x90]
mov dword [ebp - 0x14], eax
jne 0x100151ab
lea eax, [esi + 0x120]
lea edi, [esi + 0x124]
mov dword [ebp - 8], eax
jmp 0x100151b7
mov eax, dword [esi + 0x12c]
mov dword [ebp - 8], eax
lea edi, [eax + 4]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x18], edi
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], eax
push dword [ebp + 0x18]
push eax
push ebx
call dword [ebx + 4]
mov ecx, dword [ebp - 4]
add eax, 5
add esp, 0x10
cmp eax, 0x12
mov dword [edi], ecx
ja case.default.0x100151e5
jmp dword [eax*4 + 0x10015a39]
mov eax, dword [ebx + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push ebx
call dword [ebx + 0x30]
add esp, 0xc
mov byte [ebp + 0x13], al
test al, al
je 0x10015224
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x10015713
push 1
lea ecx, [ebp + 0x13]
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x10015841
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 4]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
mov eax, dword [ebp - 0x14]
add eax, 0x50
push ebx
push eax
call fcn.1001a29f
add esp, 0x10
mov dword [ebp + 8], eax
test eax, eax
je 0x10015947
push 0
push eax
push dword [ebp - 0x14]
call fcn.10019dda
mov edi, eax
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [eax + 0x60]
cmp byte [eax + 0x81], 0
mov dword [eax + 0x5c], ecx
je 0x10015294
cmp byte [eax + 0x82], 0
jne 0x10015294
xor ecx, ecx
cmp edi, ecx
jne 0x100152a7
mov eax, dword [esi + 0x78]
cmp eax, ecx
je 0x1001528c
push ecx
push dword [ebp + 8]
jmp 0x10015217
cmp dword [esi + 0x50], ecx
jmp 0x10015717
xor ecx, ecx
cmp edi, ecx
je 0x1001591f
cmp byte [edi + 0x22], cl
je 0x10015926
cmp byte [edi + 0x20], 0
jne 0x1001592d
cmp dword [edi + 0x1c], ecx
jne 0x10015934
cmp dword [edi + 4], ecx
je 0x100152f1
cmp byte [esi + 0x134], 0
jne 0x100152d8
mov eax, dword [esi + 0x78]
cmp eax, ecx
je 0x1001528c
push 0
push dword [edi]
jmp 0x10015217
push 0
push edi
push esi
call fcn.10018383
add esp, 0xc
test eax, eax
jne 0x10015a34
jmp 0x10015841
cmp dword [esi + 0x70], ecx
je 0x1001528c
push esi
mov byte [edi + 0x20], 1
call fcn.100191c6
and byte [edi + 0x20], 0
pop ecx
test eax, eax
je 0x10015947
push dword [edi + 0x18]
push dword [edi + 0x10]
push dword [edi + 0x14]
push eax
push dword [esi + 0x74]
call dword [esi + 0x70]
add esp, 0x14
test eax, eax
je 0x1001593b
mov eax, dword [esi + 0x1b0]
mov dword [esi + 0x1ac], eax
jmp 0x10015841
mov edi, dword [esi + 0x170]
lea eax, [esi + 0x170]
test edi, edi
je 0x1001534f
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x10015376
push 0x30
call dword [esi + 0xc]
mov edi, eax
pop ecx
test edi, edi
je 0x10015947
push 0x20
call dword [esi + 0xc]
test eax, eax
pop ecx
mov dword [edi + 0x24], eax
je 0x10015942
add eax, 0x20
mov dword [edi + 0x28], eax
lea eax, [edi + 0x2c]
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [eax], ecx
mov edx, dword [esi + 0x16c]
lea eax, [esi + 0x16c]
mov dword [edi], edx
mov dword [eax], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push ebx
mov dword [edi + 4], eax
call dword [ebx + 0x20]
mov dword [edi + 8], eax
inc dword [esi + 0x138]
mov ecx, dword [edi + 4]
mov eax, ecx
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0x24]
add eax, dword [edi + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x28]
dec ecx
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x1c
mov ecx, dword [edi + 0x24]
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 8], eax
je 0x10015430
mov eax, dword [edi + 0x28]
sub eax, ecx
shl eax, 1
push eax
push ecx
mov dword [ebp - 0x20], eax
call dword [esi + 0x10]
pop ecx
test eax, eax
pop ecx
je 0x10015947
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x24], eax
add ecx, eax
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x28]
dec eax
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 8]
push dword [ebp - 0x10]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x14
jmp 0x100153d8
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x24]
mov dword [edi + 0x18], eax
mov ecx, dword [edi + 0x24]
lea eax, [edi + 0xc]
push eax
mov dword [ebp + 8], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
and byte [ecx], 0
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10015a85
add esp, 0x14
test eax, eax
jne 0x10015a34
mov eax, dword [esi + 0x34]
test eax, eax
je 0x1001547c
push dword [esi + 0x188]
mov ecx, dword [ebp + 8]
push dword [ecx]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x10015492
cmp dword [esi + 0x50], 0
je 0x10015492
push dword [ebp - 4]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
lea eax, [esi + 0x1a0]
push eax
call fcn.1001a103
pop ecx
jmp 0x10015841
mov edi, dword [ebx + 0x44]
and dword [ebp - 0x10], 0
add edi, dword [ebp + 0x14]
mov byte [ebp + 0xb], 1
push edi
push ebx
call dword [ebx + 0x20]
add eax, edi
push eax
push edi
lea eax, [esi + 0x1a0]
push ebx
push eax
call fcn.1001a29f
add esp, 0x18
mov dword [ebp - 0x40], eax
test eax, eax
je 0x10015947
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10015a85
xor edi, edi
add esp, 0x14
cmp eax, edi
jne 0x10015a34
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x10015529
push dword [esi + 0x188]
push dword [ebp - 0x40]
push dword [esi + 4]
call eax
add esp, 0xc
and byte [ebp + 0xb], 0
cmp dword [esi + 0x38], edi
je 0x1001554c
cmp dword [esi + 0x34], edi
je 0x1001553d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ecx], eax
push dword [ebp - 0x40]
push dword [esi + 4]
call dword [esi + 0x38]
and byte [ebp + 0xb], 0
pop ecx
pop ecx
cmp byte [ebp + 0xb], 0
je 0x10015567
cmp dword [esi + 0x50], edi
je 0x10015567
push dword [ebp - 4]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
lea eax, [esi + 0x1a0]
push eax
call fcn.1001a103
pop ecx
mov edi, dword [ebp - 0x10]
test edi, edi
je 0x100156cd
mov eax, dword [esi + 0x68]
test eax, eax
je 0x10015591
mov ecx, dword [edi]
push dword [ecx]
push dword [esi + 4]
call eax
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x178]
mov dword [edi + 4], eax
mov dword [esi + 0x178], edi
mov eax, dword [edi]
mov ecx, dword [edi + 8]
mov dword [eax + 4], ecx
jmp 0x10015574
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x138], eax
je 0x100158e3
mov edi, dword [esi + 0x16c]
lea eax, [esi + 0x16c]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [esi + 0x170]
lea eax, [esi + 0x170]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebx + 0x44]
lea eax, [ecx + eax*2]
push eax
push ebx
mov dword [ebp + 8], eax
call dword [ebx + 0x20]
cmp eax, dword [edi + 8]
pop ecx
pop ecx
jne 0x10015965
push eax
push dword [ebp + 8]
push dword [edi + 4]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10015965
dec dword [esi + 0x138]
cmp dword [esi + 0x38], eax
je 0x10015676
cmp byte [esi + 0xec], al
mov edx, dword [edi + 0x10]
je 0x10015669
test edx, edx
je 0x10015669
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0xc]
mov cl, byte [edx]
test cl, cl
je 0x10015641
mov byte [eax], cl
inc eax
inc edx
jmp 0x10015635
cmp byte [esi + 0xed], 0
mov edx, dword [edi + 0x14]
je 0x10015666
test edx, edx
je 0x10015666
mov cl, byte [esi + 0x1d8]
mov byte [eax], cl
inc eax
mov cl, byte [edx]
test cl, cl
je 0x10015666
mov byte [eax], cl
inc eax
inc edx
jmp 0x1001565a
and byte [eax], 0
push dword [edi + 0xc]
push dword [esi + 4]
call dword [esi + 0x38]
pop ecx
pop ecx
jmp 0x1001568c
cmp dword [esi + 0x50], 0
je 0x1001568c
push dword [ebp - 4]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
mov eax, dword [edi + 0x2c]
test eax, eax
mov dword [ebp + 8], eax
je 0x100156cd
mov ecx, dword [esi + 0x68]
test ecx, ecx
je 0x100156ab
mov eax, dword [eax]
push dword [eax]
push dword [esi + 4]
call ecx
mov eax, dword [ebp + 8]
pop ecx
pop ecx
mov ecx, dword [edi + 0x2c]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esi + 0x178]
mov dword [eax + 4], ecx
mov dword [esi + 0x178], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
jmp 0x1001568c
cmp dword [esi + 0x138], 0
je 0x1001594e
jmp 0x10015841
push dword [ebp + 0x14]
push ebx
call dword [ebx + 0x2c]
pop ecx
test eax, eax
pop ecx
jl 0x10015974
cmp dword [esi + 0x3c], 0
je 0x10015713
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.10021fe2
push eax
lea eax, [ebp - 0x28]
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x14
jmp 0x10015841
cmp dword [esi + 0x50], 0
je 0x10015841
push dword [ebp - 4]
jmp 0x10015834
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x100151e5
mov byte [ebp + 0xb], 0xa
push 1
lea ecx, [ebp + 0xb]
jmp 0x10015216
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1001574d
push dword [esi + 4]
call eax
pop ecx
jmp 0x10015761
cmp dword [esi + 0x50], 0
je 0x10015761
push ecx
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
push dword [ebp + 0x20]
lea eax, [ebp - 4]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push eax
push ebx
push esi
call fcn.1001648f
add esp, 0x18
test eax, eax
jne 0x10015a34
cmp dword [ebp - 4], eax
je 0x10015982
jmp 0x10015841
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x100151e5
cmp byte [ebx + 0x48], 0
jne 0x100157fc
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push ecx
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 8]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
mov eax, dword [ebp + 0x14]
add esp, 0x20
cmp eax, dword [ebp - 4]
je 0x10015841
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x14]
push dword [ebp - 4]
push eax
push ebx
call dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
jmp 0x100157ba
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
jmp 0x10015217
push ecx
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018ce3
jmp 0x10015820
push ecx
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018dd5
add esp, 0x10
test eax, eax
je 0x10015947
jmp 0x10015841
cmp dword [esi + 0x50], 0
je 0x10015841
push ecx
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [ebp + 0x14], ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x1e0]
dec eax
dec eax
je 0x10015a31
dec eax
je 0x10015a27
mov edi, dword [ebp - 0x18]
jmp 0x100151bf
cmp byte [ebp + 0x20], 0
je 0x1001587e
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x10015a34
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1001589e
lea ecx, [ebp + 0x23]
push 1
push ecx
mov byte [ebp + 0x23], 0xa
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x100158b4
cmp dword [esi + 0x50], 0
je 0x100158b4
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x100158ea
cmp dword [esi + 0x138], eax
jne 0x100158e3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
jmp 0x10015a2a
cmp byte [ebp + 0x20], 0
jne 0x1001586f
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x100158ea
cmp dword [esi + 0x138], eax
je 0x1001586f
push 0xd
jmp 0x10015a33
push 3
jmp 0x10015a33
mov eax, dword [ebp - 8]
push 4
mov dword [eax], ecx
jmp 0x10015a33
cmp byte [ebp + 0x20], 0
jne 0x1001586f
push 5
jmp 0x10015a33
cmp byte [ebp + 0x20], 0
jne 0x1001586f
push 6
jmp 0x10015a33
push 0xb
jmp 0x10015a33
push 0x18
jmp 0x10015a33
push 0xc
jmp 0x10015a33
push 0xf
jmp 0x10015a33
push 0x15
jmp 0x10015a33
push edi
call dword [esi + 0x14]
pop ecx
push 1
jmp 0x10015a33
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
push esi
call fcn.10018258
add esp, 0x10
jmp 0x10015a34
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
push 7
mov dword [ecx], eax
jmp 0x10015a33
push 0xe
jmp 0x10015a33
push 0x11
jmp 0x10015a33
mov dword [esi + 0x118], 0x100163cc
jmp 0x10015877
cmp byte [ebp + 0x20], 0
jne 0x1001586f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100159e9
cmp byte [ebx + 0x48], 0
jne 0x100159d5
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp + 0x14]
push dword [ebp + 0x18]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 0x20]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x20
jmp 0x100159ff
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x100159ff
cmp dword [esi + 0x50], 0
je 0x100159ff
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push esi
call fcn.10018e45
add esp, 0x10
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10015a13
push 3
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
pop eax
mov dword [edx], ecx
jmp 0x10015a34
cmp dword [esi + 0x138], eax
je 0x10015a1f
push 0xd
jmp 0x10015a08
mov eax, dword [ebp + 0x18]
jmp 0x10015872
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x10015877
push 0x23
pop eax
pop edi
pop esi
pop ebx
leave
ret