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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0x90]
mov eax, dword [esi + 0x164]
push edi
mov dword [ebp - 0x24], eax
jne 0x40015bc2
lea eax, [esi + 0x120]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x124]
jmp 0x40015bce
mov eax, dword [esi + 0x12c]
mov dword [ebp - 0xc], eax
add eax, 4
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push ebx
mov dword [ebp - 8], eax
call dword [ebx + 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add eax, 5
add esp, 0x10
cmp eax, 0x12
mov dword [edx], ecx
ja case.default.0x40015c03
jmp dword [eax*4 + 0x40016455]
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
test al, al
mov byte [ebp - 2], al
je 0x40015c5b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40015c3e
lea ecx, [ebp - 2]
push 1
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x40015d0f
cmp dword [esi + 0x50], 0
je 0x40015d0f
mov eax, dword [ebp - 8]
push dword [ebp + 0x14]
push ebx
call fcn.400126b7
pop ecx
pop ecx
jmp 0x40015d0f
mov eax, dword [ebx + 0x44]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
sub edi, eax
add eax, ecx
push eax
mov eax, dword [ebp - 0x24]
add eax, 0x50
call fcn.40013987
xor ebx, ebx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x4001629d
mov edi, dword [ebp - 0x24]
push ebx
push eax
mov esi, edi
call fcn.4001284b
cmp byte [edi + 0x81], bl
mov esi, eax
mov eax, dword [edi + 0x60]
pop ecx
pop ecx
mov dword [edi + 0x5c], eax
je 0x40015cc4
cmp byte [edi + 0x82], bl
jne 0x40015cc4
cmp esi, ebx
jne 0x40015cd5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x40015cbc
push ebx
push dword [ebp - 0x20]
jmp 0x40015d01
cmp dword [eax + 0x50], ebx
jmp 0x40015d99
cmp esi, ebx
je 0x40016374
cmp byte [esi + 0x22], bl
je 0x4001637b
cmp byte [esi + 0x20], bl
jne 0x40016382
cmp dword [esi + 0x1c], ebx
jne 0x40016389
cmp dword [esi + 4], ebx
je 0x40015d4e
mov eax, dword [ebp + 8]
cmp byte [eax + 0x134], bl
jne 0x40015d39
mov ecx, dword [eax + 0x78]
cmp ecx, ebx
je 0x40015cbc
push ebx
push dword [esi]
push dword [eax + 4]
call ecx
add esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ebp + 0x14], ecx
mov dword [eax], ecx
mov eax, dword [esi + 0x1e0]
dec eax
dec eax
je 0x4001644c
dec eax
jne 0x40015bd9
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x400162d4
push ebx
mov ebx, esi
mov esi, eax
call fcn.40012587
test eax, eax
pop ecx
jne 0x4001644f
jmp 0x40015d09
mov edi, dword [ebp + 8]
cmp dword [edi + 0x70], ebx
je 0x40015d96
mov byte [esi + 0x20], 1
call fcn.400133eb
cmp eax, ebx
mov byte [esi + 0x20], bl
je 0x4001629d
push dword [esi + 0x18]
push dword [esi + 0x10]
push dword [esi + 0x14]
push eax
push dword [edi + 0x74]
call dword [edi + 0x70]
add esp, 0x14
test eax, eax
je 0x40016390
mov eax, dword [edi + 0x1b0]
mov dword [edi + 0x1ac], eax
jmp 0x40015d09
cmp dword [edi + 0x50], ebx
je 0x40015d09
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
call fcn.400126b7
pop ecx
pop ecx
jmp 0x40015d09
lea eax, [esi + 0x170]
mov edi, dword [eax]
test edi, edi
je 0x40015dc9
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x40015df0
push 0x30
call dword [esi + 0xc]
mov edi, eax
test edi, edi
pop ecx
je 0x4001629d
push 0x20
call dword [esi + 0xc]
test eax, eax
pop ecx
mov dword [edi + 0x24], eax
je 0x40016397
add eax, 0x20
mov dword [edi + 0x28], eax
xor ecx, ecx
lea eax, [edi + 0x2c]
mov dword [eax], ecx
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x16c]
mov edx, dword [eax]
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, dword [edi + 8]
add eax, ecx
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x28]
dec ecx
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x1c
jmp 0x40015e93
mov eax, dword [edi + 0x28]
sub eax, ecx
shl eax, 1
push eax
push ecx
mov dword [ebp - 0x28], eax
call dword [esi + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x4001629d
mov ecx, dword [ebp - 0x28]
add ecx, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x14
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], eax
jne 0x40015e50
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x2c]
mov dword [edi + 0x18], eax
lea eax, [edi + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
push eax
mov byte [ecx], 0
push dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
push ebx
push esi
call fcn.4001529d
add esp, 0x14
test eax, eax
jne 0x4001644f
mov eax, dword [esi + 0x34]
test eax, eax
je 0x40015ef0
push dword [esi + 0x188]
mov ecx, dword [ebp - 0x28]
push dword [ecx]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x40015f04
cmp dword [esi + 0x50], 0
je 0x40015f04
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.400126b7
pop ecx
pop ecx
lea eax, [esi + 0x1a0]
call fcn.40012b04
jmp 0x40015d0f
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
and dword [ebp - 0x1c], 0
push eax
add esi, 0x1a0
push ebx
mov dword [ebp - 0x20], eax
mov byte [ebp - 1], 1
mov dword [ebp - 0x2c], esi
call dword [ebx + 0x20]
push dword [ebp - 0x20]
mov edi, eax
add edi, dword [ebp - 0x20]
mov eax, esi
call fcn.40013987
xor ebx, ebx
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x48], eax
je 0x4001629d
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.4001529d
add esp, 0x14
cmp eax, ebx
jne 0x4001644f
mov eax, dword [esi + 0x1ac]
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x34]
cmp eax, ebx
je 0x40015fa7
push dword [esi + 0x188]
push dword [ebp - 0x48]
push dword [esi + 4]
call eax
add esp, 0xc
mov byte [ebp - 1], bl
cmp dword [esi + 0x38], ebx
je 0x40015fca
cmp dword [esi + 0x34], ebx
je 0x40015fbb
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push dword [ebp - 0x48]
push dword [esi + 4]
call dword [esi + 0x38]
pop ecx
pop ecx
mov byte [ebp - 1], 0
cmp byte [ebp - 1], 0
je 0x40015fe5
cmp dword [esi + 0x50], ebx
je 0x40015fe5
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
call fcn.400126b7
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
call fcn.40012b04
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x40016027
mov eax, dword [esi + 0x68]
test eax, eax
mov ebx, edi
je 0x40016008
mov ecx, dword [edi]
push dword [ecx]
push dword [esi + 4]
call eax
pop ecx
pop ecx
mov ecx, dword [esi + 0x178]
lea eax, [edi + 4]
mov edi, dword [eax]
test edi, edi
mov dword [eax], ecx
mov dword [esi + 0x178], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [eax + 4], ecx
jne 0x40015ff4
cmp dword [esi + 0x138], 0
jne 0x40015d09
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push esi
call fcn.40014d58
add esp, 0x10
jmp 0x4001644f
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x138], eax
je 0x40016321
lea eax, [esi + 0x16c]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [eax], ecx
lea eax, [esi + 0x170]
mov ecx, dword [eax]
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 - 0x20], eax
call dword [ebx + 0x20]
cmp eax, dword [edi + 8]
pop ecx
pop ecx
jne 0x400163a1
push eax
push dword [ebp - 0x20]
push dword [edi + 4]
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x400163a1
dec dword [esi + 0x138]
cmp dword [esi + 0x38], eax
je 0x40016103
cmp byte [esi + 0xec], al
mov edx, dword [edi + 0x10]
je 0x400160f8
test edx, edx
je 0x400160f8
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0xc]
jmp 0x400160cb
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x400160c7
cmp byte [esi + 0xed], cl
mov edx, dword [edi + 0x14]
je 0x400160f5
test edx, edx
je 0x400160f5
mov cl, byte [esi + 0x1d8]
mov byte [eax], cl
inc eax
jmp 0x400160ef
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x400160eb
mov byte [eax], 0
push dword [edi + 0xc]
push dword [esi + 4]
call dword [esi + 0x38]
jmp 0x40016115
cmp dword [esi + 0x50], 0
je 0x40016154
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.400126b7
pop ecx
pop ecx
jmp 0x40016154
mov ecx, dword [esi + 0x68]
test ecx, ecx
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], eax
je 0x40016134
mov eax, dword [eax]
push dword [eax]
push dword [esi + 4]
call ecx
mov eax, dword [ebp - 0x20]
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
cmp dword [edi + 0x2c], 0
jne 0x40016119
cmp dword [esi + 0x138], 0
je 0x40016034
jmp 0x40015d0f
push dword [ebp + 0x14]
push ebx
call dword [ebx + 0x2c]
test eax, eax
pop ecx
pop ecx
jl 0x400163b0
cmp dword [esi + 0x3c], 0
je 0x40015c3e
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.4001fe57
push eax
lea eax, [ebp - 0x30]
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x14
jmp 0x40015d0f
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x40015c03
mov byte [ebp - 1], 0xa
lea ecx, [ebp - 1]
jmp 0x40015c2e
mov eax, dword [esi + 0x48]
test eax, eax
je 0x400161c9
push dword [esi + 4]
call eax
jmp 0x400161db
cmp dword [esi + 0x50], 0
je 0x400161dc
push dword [ebp + 0x14]
mov eax, ecx
push ebx
call fcn.400126b7
pop ecx
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 8]
push dword [ebp + 0x1c]
mov edi, ebx
push dword [ebp + 0x18]
push eax
mov eax, esi
call fcn.40013092
add esp, 0x10
test eax, eax
jne 0x4001644f
cmp dword [ebp - 8], eax
jne 0x40015d0f
mov dword [esi + 0x118], 0x40013cb7
jmp 0x400162d4
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x40015c03
cmp byte [ebx + 0x48], 0
jne 0x4001627b
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push ecx
jmp 0x4001624b
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x18]
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 - 8]
jne 0x40016236
jmp 0x40015d0f
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
jmp 0x40015c31
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.40014606
test eax, eax
pop ecx
jne 0x40015d0f
xor eax, eax
inc eax
jmp 0x4001644f
push dword [ebp + 0x14]
mov eax, ecx
mov ecx, ebx
mov edx, esi
call fcn.400146b2
jmp 0x40016294
cmp dword [esi + 0x50], 0
je 0x40015d0f
mov eax, ecx
jmp 0x40015c4b
cmp byte [ebp + 0x20], 0
je 0x400162db
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
xor eax, eax
jmp 0x4001644f
mov eax, dword [ebp - 0x14]
mov dword [eax], edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x400162fb
push 1
lea ecx, [ebp + 0xb]
push ecx
push dword [esi + 4]
mov byte [ebp + 0xb], 0xa
call eax
add esp, 0xc
jmp 0x4001630e
cmp dword [esi + 0x50], 0
je 0x4001630e
push dword [ebp + 0x14]
mov eax, edi
push ebx
call fcn.400126b7
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4001633f
cmp dword [esi + 0x138], eax
je 0x40016442
push 0xd
jmp 0x4001644e
cmp byte [ebp + 0x20], 0
jne 0x400162cc
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4001633f
cmp dword [esi + 0x138], eax
je 0x400162cc
jmp 0x40016321
push 3
jmp 0x4001644e
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
push 4
jmp 0x4001644e
cmp byte [ebp + 0x20], 0
jne 0x400162cc
push 5
jmp 0x4001644e
cmp byte [ebp + 0x20], 0
jne 0x400162cc
push 6
jmp 0x4001644e
push 0xb
jmp 0x4001644e
push 0x18
jmp 0x4001644e
push 0xc
jmp 0x4001644e
push 0xf
jmp 0x4001644e
push 0x15
jmp 0x4001644e
push edi
call dword [esi + 0x14]
pop ecx
jmp 0x4001629d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 7
jmp 0x4001644e
push 0xe
jmp 0x4001644e
push 0x11
jmp 0x4001644e
cmp byte [ebp + 0x20], 0
jne 0x400162cc
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x40016413
cmp byte [ebx + 0x48], 0
jne 0x40016400
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
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]
add esp, 0x20
jmp 0x40016426
mov ecx, edi
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x40016426
cmp dword [esi + 0x50], 0
je 0x40016426
push dword [ebp + 0x14]
mov eax, edi
push ebx
call fcn.400126b7
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40016436
push 3
mov ecx, dword [ebp - 0xc]
mov dword [ecx], edi
jmp 0x4001644e
cmp dword [esi + 0x138], eax
je 0x40016442
push 0xd
jmp 0x4001642f
mov eax, dword [ebp + 0x1c]
mov dword [eax], edi
jmp 0x400162d4
push 0x23
pop eax
pop edi
pop esi
pop ebx
leave
ret