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

Disassembly:
sub esp, 0x88
push ebx
push ebp
push esi
mov esi, dword [esp + 0x98]
push edi
mov dword [esp + 0x24], ecx
xor eax, eax
test esi, esi
mov ecx, 8
lea edi, [esp + 0x58]
mov dword [esp + 0x44], edx
rep stosd dword es:[edi], eax
jbe 0x14056a0
mov ecx, edx
xor eax, eax
mov ax, word [ecx]
inc word [esp + eax*2 + 0x58]
add ecx, 2
dec esi
lea eax, [esp + eax*2 + 0x58]
jne 0x140568c
mov esi, dword [esp + 0xa4]
mov ecx, dword [esi]
mov ebp, 0xf
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x76]
cmp word [eax], 0
jne 0x14056c9
dec ebp
sub eax, 2
cmp ebp, 1
jae 0x14056ba
cmp ecx, ebp
mov dword [esp + 0x20], ebp
jbe 0x14056d7
mov dword [esp + 0x14], ebp
mov ecx, ebp
test ebp, ebp
jne 0x140571e
mov eax, dword [esp + 0xa0]
mov edx, dword [eax]
mov word [esp + 0x12], bp
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], 1
mov ecx, dword [esp + 0x10]
mov dword [edx], ecx
mov edx, dword [eax]
add edx, 4
mov dword [eax], edx
mov dword [edx], ecx
mov ecx, dword [eax]
add ecx, 4
pop edi
mov dword [eax], ecx
mov dword [esi], 1
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x88
ret 0x10
mov edx, 1
lea eax, [esp + 0x5a]
cmp word [eax], 0
jne 0x1405736
inc edx
add eax, 2
cmp edx, 0xf
jbe 0x1405727
cmp ecx, edx
jae 0x1405740
mov dword [esp + 0x14], edx
mov ecx, edx
mov edi, 1
mov eax, edi
lea esi, [esp + 0x5a]
xor ebx, ebx
mov bx, word [esi]
add edi, edi
sub edi, ebx
js 0x1405770
inc eax
add esi, 2
cmp eax, 0xf
jbe 0x140574b
xor esi, esi
cmp edi, esi
jle 0x1405780
cmp dword [esp + 0x24], esi
je 0x1405770
cmp ebp, 1
je 0x1405780
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x88
ret 0x10
mov word [esp + 0x7a], si
xor eax, eax
mov di, word [esp + eax + 0x5a]
add di, word [esp + eax + 0x7a]
add eax, 2
cmp eax, 0x1c
mov word [esp + eax + 0x7a], di
jb 0x1405787
cmp dword [esp + 0x9c], esi
mov edi, dword [esp + 0xa8]
jbe 0x14057eb
mov ebp, dword [esp + 0x44]
xor eax, eax
mov ax, word [ebp]
test ax, ax
je 0x14057dc
and eax, 0xffff
xor ebx, ebx
mov bx, word [esp + eax*2 + 0x78]
xor eax, eax
mov word [edi + ebx*2], si
mov ax, word [ebp]
inc word [esp + eax*2 + 0x78]
lea eax, [esp + eax*2 + 0x78]
mov eax, dword [esp + 0x9c]
inc esi
add ebp, 2
cmp esi, eax
jb 0x14057b2
mov eax, dword [esp + 0x24]
xor ebx, ebx
sub eax, ebx
mov esi, 0xffffffff
je 0x1405839
dec eax
je 0x1405813
mov dword [esp + 0x34], 0x140e3f0
mov dword [esp + 0x30], 0x140e430
mov dword [esp + 0x38], esi
jmp 0x1405849
mov eax, 0x140e370
sub eax, 0x202
mov dword [esp + 0x34], eax
mov eax, 0x140e3b0
sub eax, 0x202
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0x100
jmp 0x1405849
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x13
mov eax, dword [esp + 0xa0]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x18], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], esi
lea ecx, [eax - 1]
mov dword [esp + 0x4c], ecx
cmp dword [esp + 0x24], 1
mov ebp, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], eax
jne 0x140589a
cmp eax, 0x5b0
jb 0x140589a
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x88
ret 0x10
mov dword [esp + 0x28], edi
jmp 0x14058a4
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
mov al, dl
sub al, bl
mov byte [esp + 0x11], al
xor eax, eax
mov ax, word [ecx]
mov ecx, dword [esp + 0x38]
mov esi, eax
and esi, 0xffff
cmp esi, ecx
jge 0x14058d1
mov byte [esp + 0x10], 0
mov word [esp + 0x12], ax
jmp 0x14058f9
jle 0x14058ed
mov eax, dword [esp + 0x30]
mov cl, byte [eax + esi*2]
mov eax, dword [esp + 0x34]
mov byte [esp + 0x10], cl
mov cx, word [eax + esi*2]
mov word [esp + 0x12], cx
jmp 0x14058f9
mov byte [esp + 0x10], 0x60
mov word [esp + 0x12], 0
mov ecx, edx
sub ecx, ebx
mov eax, ebp
mov ebp, dword [esp + 0x18]
mov esi, 1
shl esi, cl
mov ecx, ebx
shr ebp, cl
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
lea edi, [esi*4]
add ebp, eax
lea ecx, [ecx + ebp*4]
mov ebp, dword [esp + 0x10]
sub eax, esi
sub ecx, edi
test eax, eax
mov dword [ecx], ebp
jne 0x1405926
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x18]
test ecx, eax
je 0x1405948
shr eax, 1
test ecx, eax
jne 0x1405942
xor edi, edi
cmp eax, edi
je 0x140595b
lea esi, [eax - 1]
and esi, ecx
add esi, eax
mov dword [esp + 0x18], esi
jmp 0x1405961
mov dword [esp + 0x18], edi
mov esi, edi
mov ebp, dword [esp + 0x28]
add ebp, 2
dec word [esp + edx*2 + 0x58]
cmp word [esp + edx*2 + 0x58], di
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x20]
jne 0x1405999
cmp edx, ebp
je 0x1405a6a
mov eax, dword [esp + 0x28]
xor edx, edx
mov dx, word [eax]
mov eax, dword [esp + 0x44]
mov ecx, edx
xor edx, edx
mov dx, word [eax + ecx*2]
cmp edx, dword [esp + 0x14]
jbe 0x14058a0
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
and edi, ecx
cmp edi, eax
mov dword [esp + 0x54], edi
je 0x14058a0
test ebx, ebx
jne 0x14059c9
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x40], ebx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x50]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], ecx
mov ecx, edx
sub ecx, ebx
mov eax, 1
lea esi, [ebx + ecx]
shl eax, cl
cmp esi, ebp
jae 0x1405a08
lea edi, [esp + esi*2 + 0x58]
xor ebx, ebx
mov bx, word [edi]
sub eax, ebx
test eax, eax
jle 0x1405a04
inc ecx
inc esi
add edi, 2
shl eax, 1
cmp esi, ebp
jb 0x14059ee
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
mov eax, 1
mov ebp, eax
shl ebp, cl
add ebx, ebp
cmp esi, eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x2c], ebx
jne 0x1405a35
mov esi, ebx
cmp esi, 0x5b0
jae 0x1405b02
mov esi, dword [esp + 0xa0]
mov bl, byte [esp + 0x14]
mov eax, edi
mov edi, dword [esi]
mov byte [edi + eax*4], cl
mov ecx, dword [esi]
mov byte [ecx + eax*4 + 1], bl
mov esi, dword [esi]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x40]
sub ecx, esi
sar ecx, 2
mov dword [esp + 0x3c], eax
mov word [esi + eax*4 + 2], cx
jmp 0x14058a4
mov al, dl
sub al, bl
mov word [esp + 0x12], di
cmp esi, edi
mov edi, dword [esp + 0xa0]
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
je 0x1405ae2
mov ebp, dword [esp + 0x1c]
jmp 0x1405a91
mov esi, dword [esp + 0x18]
test ebx, ebx
je 0x1405aaf
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x3c]
and ecx, esi
cmp ecx, eax
je 0x1405aaf
mov edx, dword [esp + 0x14]
mov ebp, dword [edi]
xor ebx, ebx
mov byte [esp + 0x11], dl
mov ecx, ebx
mov eax, esi
shr eax, cl
mov ecx, dword [esp + 0x10]
mov dword [ebp + eax*4], ecx
lea ecx, [edx - 1]
mov eax, 1
shl eax, cl
test esi, eax
je 0x1405ad1
shr eax, 1
test esi, eax
jne 0x1405acb
test eax, eax
je 0x1405ae2
lea ecx, [eax - 1]
and ecx, esi
add ecx, eax
mov dword [esp + 0x18], ecx
jne 0x1405a8d
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi]
lea eax, [edx*4]
mov edx, dword [esp + 0xa4]
add ecx, eax
mov dword [edi], ecx
mov ecx, dword [esp + 0x14]
mov dword [edx], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret 0x10