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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x15784d3
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x15b0648]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
xor esi, esi
cmp dword [ebx + 8], esi
je 0x15132f7
push 0x1512d90
push 0x1512e70
push 3
push 0xc
lea eax, [esp + 0x58]
push eax
call fcn.0153fa22
mov dword [esp + 0x78], esi
mov eax, dword [ebx + 0x100c8]
mov ecx, dword [eax]
add ebx, 0x100c4
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], esi
mov esi, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], esi
mov ebp, 0xa
test esi, esi
mov eax, ebx
mov edx, dword [eax + 4]
je 0x151330d
cmp esi, eax
jne 0x151330d
cmp ecx, edx
sete al
test al, al
sete al
test al, al
je 0x1513207
cmp ecx, dword [esi + 4]
je 0x15131f8
mov esi, dword [ecx + 0xc]
mov ecx, dword [esi + 0x1050]
movzx edi, word [ecx]
cmp di, 0x2209
mov dword [esp + 0x14], edi
jne 0x1513124
cmp dword [esi + 0x104c], ebp
jg 0x1513113
call fcn.014fbaa0
mov edx, dword [esi + 0x1034]
movzx edi, word [edx + 0xa]
add dword [esp + 0x18], 1
jmp 0x151315f
cmp di, 0x220a
jne 0x1513163
mov eax, dword [esi + 0x1054]
mov cx, word [eax]
and cx, 0x7fff
add cx, 6
movzx edi, cx
sub edi, 2
cmp edi, dword [esi + 0x104c]
jl 0x1513150
call fcn.014fbaa0
mov edx, dword [esi + 0x1034]
movzx edi, word [edi + edx]
add dword [esp + 0x20], 1
mov dword [esp + 0x14], edi
mov esi, dword [esi + 0x14]
xor eax, eax
cmp esi, 2
je 0x1513176
cmp esi, 1
setne al
add eax, 1
lea esi, [eax + eax*2]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
lea esi, [esp + esi*4 + 0x4c]
push ecx
mov ecx, esi
call fcn.0150faf0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
mov edx, dword [esi + 4]
je 0x1513202
cmp ecx, esi
jne 0x1513202
mov eax, dword [esp + 0x30]
cmp eax, edx
jne 0x15131d9
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov word [esp + 0x3c], di
mov dword [esp + 0x40], 1
call fcn.0150fa30
lea ecx, [esp + 0x24]
call fcn.0150bd50
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x15130bf
cmp eax, dword [ecx + 4]
je 0x15131fd
add dword [eax + 0x10], 1
lea ecx, [esp + 0x24]
call fcn.0150bd50
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
jmp 0x15130bf
call fcn.0150bab0
call fcn.0150bdb0
call fcn.0150ba40
xor ebp, ebp
xor ebx, ebx
lea edi, [esp + 0x4c]
nop
mov eax, dword [edi]
mov esi, dword [eax]
cmp esi, dword [edi]
sete al
test al, al
sete al
test al, al
je 0x1513289
cmp esi, dword [edi]
je 0x15131fd
mov ecx, dword [esi + 0x10]
movzx edx, word [esi + 0xc]
mov eax, dword [esp + 0x1c]
push ebx
push ecx
mov ecx, dword [eax + 8]
push edx
call ecx
add esp, 0xc
cmp esi, dword [edi]
je 0x15131fd
add ebp, dword [esi + 0x10]
cmp byte [esi + 0x15], 0
jne 0x15131fd
mov eax, dword [esi + 8]
cmp byte [eax + 0x15], 0
jne 0x151326c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
jne 0x1513214
lea esp, [esp]
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0x15], 0
je 0x1513260
jmp 0x1513214
mov eax, dword [esi + 4]
cmp byte [eax + 0x15], 0
jne 0x1513285
cmp esi, dword [eax + 8]
jne 0x1513285
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x15], 0
je 0x1513275
mov esi, eax
jmp 0x1513214
add ebx, 1
add edi, 0xc
cmp ebx, 3
jl 0x1513210
mov eax, dword [esp + 0x18]
test eax, eax
mov esi, dword [esp + 0x1c]
jbe 0x15132b4
mov edx, dword [esi + 8]
push 0
push eax
push 0x2209
call edx
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
jbe 0x15132cc
push 0
push eax
mov eax, dword [esi + 8]
push 0x220a
call eax
add esp, 0xc
mov ecx, dword [esi + 8]
push 3
push ebp
push 0xffff
call ecx
add esp, 0xc
mov dword [esp + 0x78], 0xffffffff
push 0x1512d90
push 3
push 0xc
lea edx, [esp + 0x54]
push edx
call fcn.0153ebb7
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0150b660
int3