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

Disassembly:
movzx ebp, word [esp + eax*2 + 0x58]
add esi, esi
sub esi, ebp
js 0x4080c5
inc eax
cmp eax, 0xf
jbe 0x4080a0
test esi, esi
mov esi, dword [esp - 0x7fffbf60]
jle 0x4080cd
test esi, esi
je 0x4080c5
cmp edx, 1
je 0x4080cd
or eax, 0xffffffff
jmp 0x408435
adc edx, edx
mov word [esp + 0x7a], dx
mov eax, 0x102
lea esp, [esp + 0x40000000]
mov dx, word [esp + eax + 0x78]
bound eax, qword [ebx]
push esp
add al, 0x58
add eax, 2
mov word [esp + eax + 0x78], dx
cmp eax, 0x1e
jb 0x4080e0
mov ebp, dword [esp + 0x1c]
xor eax, eax
cmp dword [esp + 0xa8], eax
jbe 0x408132
and al, 0xa8
add byte [eax], al
add byte [esi + 0x2c], dh
cmp word [ebx + eax*2], 0x10
je 0x408128
movzx edx, word [ebx + eax*2]
movzx esi, word [esp + edx*2 + 0x70]
mov word [ebp + edx*2], ax
pop es
mov bh, 0x1c
inc ebx
inc word [esp + edx*2 + 0x7a]
lodsd eax, dword [esi]
pop esp
push esp
js 0x408169
inc eax
jnp 0x4080af
and al, 0xa8
add byte [eax], al
or byte [edx - 0x2c], dh
mov eax, esi
sub eax, 0
mov edx, 0xffffffff
je 0x4080ff
sub edx, 0xffffff81
je 0x408159
mov dword [esp + esi + 0x38], 0x417e38
mov dword [esi + 0x24], 0x417e7830
add byte [ecx - 0x14d3dbab], cl
mov eax, 0x617db8
mov eax, 0x617db8
sub eax, 0x202
test eax, 0xb8382444
clc
jge 0x4081ac
add byte [0x202], ch
mov dword [esp + 0x30], eax
invalid
lea ecx, [eax - 1]
mov dword [esp + 0x44], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
cmp esi, 9
jne 0x4081c7
cmp eax, 0x354
jmp 0x4081d1
cmp esi, 2
jne 0x4081d7
cmp eax, 0x250
jae 0x408430
mov dword [eax + 0x24], edx
sbb al, 0x89
push esp
and al, 0x1c
nop
mov al, byte [esp - 0x68]
mov dh, byte [esp + 0x1c]
mov edx, dword [esp + 0x2c]
sub al, cl
mov byte [esp + 0x11], al
getsec
push es
movzx ecx, al
cmp ecx, edx
jge 0x408203
mov byte [esp + 0x10], 0
jmp 0x40822b
and al, 0x10
add bl, ch
sub byte [esi + 0xf], bh
jle 0x408214
movzx eax, word [esi]
or dword [esp + 0x30], 7
ror byte [edx + 0x4c8b1014], 0x24
cmp byte [eax + 0x66102454], cl
mov edx, dword [eax + ecx]
mov word [esp + 0x12], dx
jmp 0x408230
mov word [esp + 0x12], ax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x44]
sub ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, ebx
mov ebp, ebp
shr edi, cl
mov ecx, dword [esp + 0x20]
leave
inc esp
and al, 0x50
test dword [edx*4], esi
add edi, eax
lea ecx, [ecx + edi*4]
mov edi, dword [esp + 0x10]
nop
sub eax, edx
sub ecx, esi
mov dword [ecx], edi
test eax, eax
jne 0x408260
andps xmm4, xmmword [esi]
sbb byte [ebp + 0x1b8ff4a], cl
add byte [eax], al
add bl, dl
loopne 0x4081fe
test dword [edx + ecx*4 - 0x73], esi
and al, 0x20
shr esp, 1
test ebp, eax
jne 0x408280
test eax, eax
je 0x408295
lea ecx, [eax - 1]
and ecx, ebp
add ecx, eax
mov ebp, ecx
jmp 0x4082a7
xor ebp, ebp
add dword [esp + 0x1c], 2
mov eax, 0xffff
add word [esp + edx*2 + 0x58], ax
movzx eax, word [esp + edx*2 + 0x58]
mov bh, 0x44
push esp
pop eax
test ax, ax
jne 0x4082cf
cmp edx, esp
and al, 0x2c
je 0x4083a2
mov ecx, dword [eax + 0x1c]
movzx edx, word [ecx]
mov eax, dword [esp + 0x54]
movzx ecx, word [eax + edx*2]
mov dword [esp + 0x18], ecx
mov edx, ecx
cmp edx, dword [esp + 0x14]
or eax, dword [esi - 0xf9]
mov esi, dword [esp + 0x40]
and esi, ebp
mov dword [esp + 0x48], esi
aas
je 0x40830a
sub byte [edi], cl
test bl, dh
invalid
mov eax, 0x81
lea edx, [ebx + ecx]
shl eax, cl
cmp edx, dword [esp + 0x64]
jae 0x40833a
lea esi, [esp + edx*2 + 0x58]
mov ebx, edi
getsec
sub eax, edi
test eax, eax
jle 0x408336
inc eax
inc ecx
add esi, 2
pop es
sar byte [ebx], 0x54
and al, 0x24
jb 0x4083a0
mov esi, dword [esp + 8]
mov edx, dword [esp + 0x3c]
mov eax, 0x10000003
shl eax, cl
add edx, eax
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0xa0]
mov dword [eax + 0x3c], edx
sbb eax, 0x41
jge 0x408363
cmp edx, 0x354
jmp fcn.0040836e
adc eax, 2
jne 0x408374
cmp edx, 0x250
invalid
mov edi, dword [esp + 0x34]
mov al, dh
sub al, cl
xor ecx, ecx
mov byte [esp + 0x10], 0x40
mov byte [esp + 0x11], al
mov word [esp + 0x12], cx
test ebp, ebp
je 0x408415
mov esi, dword [esp + 0x20]
test ebx, edi
je 0x408404
mov eax, dword [esp + 0x40]
and eax, ebp
cmp eax, dword [esp + 0x28]
je 0x4083e4
mov eax, dword [esp + 0x14]
mov esi, dword [edi]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov byte [esp + 0x11], al
mov edx, eax
mov ecx, ebx
mov eax, ebp
shr eax, cl
mov ecx, dword [eax + 0x24]
adc byte [ecx + 0x4a8d860c], cl
invalid
xchg byte [ebp - 0x7e4700b6], cl
add byte [eax], al
add bl, dl
loopne 0x408381
lds esi, [ebx + eax - 0x70]
shr eax, 1
test ebp, eax
jne 0x4083f0
test eax, eax
je 0x408415
lea ecx, [eax - 1]
and ecx, ebp
inc ebx
enter 0xffffffffffffe98b, 0x75
lodsd eax, dword [esi]
mov edx, dword [esp + 0x3e]
mov ecx, dword [esp + 0x14]
lea eax, [esp + edx*4]
add byte [eax], al
add byte [eax], al
add dword [edi], eax
mov edx, dword [esp + 0x4c]
mov dword [edx], ecx
xor eax, eax
jmp 0x408435
mov eax, 0x40001
mov ecx, dword [esp + 0x98]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004089ca
add esp, 0x8c
ret