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

Disassembly:
push edx
and edx, 0x1061d
pop edx
push esi
push edi
add esp, 4
and esi, 0x44cc
call 0x4095ec
add byte [eax + 0x3b], al
cmp al, 0x4c
cmp byte [esp + edi], dh
aas
inc esi
add esp, 4
sub esi, 0x14243
jmp 0x4095fb
pop esi
lea edx, [ebp - 0x1770]
mov dword [ebp - 0xca0], edx
mov eax, dword [ebp - 0x508]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xc9c], ecx
xor edx, edx
mov word [ebp - 0x210], dx
xor eax, eax
mov word [ebp - 0x110], ax
push ecx
or ecx, 0xfbd3
or ecx, 0x12d97
add ecx, 0xaa8d
add ecx, 0x6a0c
pop ecx
push ecx
call 0x409651
add byte [edi + 0x50], cl
dec ebx
inc esp
inc edx
cmp al, 0x44
add esp, 4
sub ecx, 0x72f7
pop ecx
mov ecx, dword [ebp - 0xc9c]
mov dx, word [ecx]
mov word [ebp - 0x1036], dx
mov eax, dword [ebp - 0xc9c]
add eax, 2
mov dword [ebp - 0xc9c], eax
mov cx, word [ebp - 0x1036]
mov word [ebp - 0x210], cx
mov edx, dword [ebp - 0xca0]
mov ax, word [edx]
mov word [ebp - 0x1038], ax
mov ecx, dword [ebp - 0xca0]
add ecx, 2
mov dword [ebp - 0xca0], ecx
mov dx, word [ebp - 0x1038]
mov word [ebp - 0x110], dx
push ebx
and ebx, 0x1364f
pop ebx
push eax
push edx
add esp, 4
and eax, 0xac24
call 0x4096d5
add byte [eax], bh
cmp dword [esi + ecx*2], edi
dec ebp
xor eax, 0x4c48342
sub eax, 0x124d9
pop eax
push edi
xor edi, 0xf167
pop edi
movzx eax, word [ebp - 0x110]
test eax, eax
jne 0x40970a
movzx ecx, word [ebp - 0x210]
movzx edx, word [ebp - 0x110]
sub ecx, edx
mov dword [ebp - 0x15e4], ecx
jmp 0x40976d
movzx eax, word [ebp - 0x210]
movzx ecx, word [ebp - 0x110]
cmp eax, ecx
je 0x409629
movzx edx, word [ebp - 0x210]
xor edx, 0x20
movzx eax, word [ebp - 0x110]
cmp edx, eax
je 0x409629
movzx ecx, word [ebp - 0x210]
movzx edx, word [ebp - 0x110]
cmp ecx, edx
jge 0x409757
mov dword [ebp - 0x15e0], 0xffffffff
jmp 0x409761
mov dword [ebp - 0x15e0], 1
mov eax, dword [ebp - 0x15e0]
mov dword [ebp - 0x15e4], eax
cmp dword [ebp - 0x15e4], 0
jne 0x4097b6
push ebx
push edx
add esp, 4
xor ebx, 0x175d9
and ebx, 0xa702
sub ebx, 0xeb49
pop ebx
push edx
add edx, 0x11c8c
xor edx, 0x14939
add edx, 0x68b2
add edx, 0x16908
pop edx
mov ecx, dword [ebp - 0x508]
mov dword [ebp - 0x750], ecx
jmp 0x40981e
push ecx
push ecx
add esp, 4
add ecx, 0x1569c
add ecx, 0xc98a
xor ecx, 0x1550d
pop ecx
push edi
or edi, 0x127f6
call 0x4097e4
add byte [esi], dh
dec esp
inc edi
dec ebp
dec esp
cmp al, 0x34
cmp bh, byte [edi]
add esp, 4
pop edi
mov edx, dword [ebp - 0x508]
mov eax, dword [edx]
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
cmp ecx, dword [ebp - 0xca4]
je 0x409814
mov edx, dword [ebp - 0x508]
cmp dword [edx + 0x30], 0
jne 0x4095ca
mov dword [ebp - 0x750], 0
push eax
push eax
add esp, 4
and eax, 0xc6fe
pop eax
push edx
push esi
add esp, 4
or edx, 0x11f12
or edx, 0xa2a8
pop edx
push ebx
and ebx, 0x17cf5
pop ebx
push edx
push edi
add esp, 4
and edx, 0x2c7b
pop edx
cmp dword [ebp - 0x750], 0
jne 0x40989a
push ebx
sub ebx, 0x14562
sub ebx, 0x4883
pop ebx
push edx
push edi
add esp, 4
xor edx, 0xbb55
pop edx
push ebx
push ebx
add esp, 4
and ebx, 0x185d9
or ebx, 0xa614
or ebx, 0x12dc6
pop ebx
mov dword [ebp - 0x79c], 0
jmp 0x40a3c1
push ebx
push ebx
add esp, 4
xor ebx, 0x134d
jmp 0x4098ae
and ebx, 0x38f4
pop ebx
push eax
add eax, 0x61b0
jmp 0x4098c5
add eax, 0x4d8a
pop eax
mov eax, dword [ebp - 0x750]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x320], ecx
mov dword [ebp - 0x760], 0
mov edx, dword [ebp - 0x320]
mov dword [ebp - 0x15e8], edx
cmp dword [ebp - 0x15e8], 0
jne 0x40990b
mov eax, dword [ebp - 0x760]
mov dword [ebp - 0x3f0], eax
jmp 0x409bfc
mov ecx, dword [ebp - 0x15e8]
mov edx, dword [ebp - 0x320]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x15ec], edx
jne 0x409933
mov eax, dword [ebp - 0x760]
mov dword [ebp - 0x3f0], eax
jmp 0x409bfc
mov ecx, 8
imul edx, ecx, 0
mov eax, dword [ebp - 0x15ec]
mov ecx, dword [eax + edx + 0x78]
mov dword [ebp - 0x15f0], ecx
cmp dword [ebp - 0x15f0], 0
jne 0x409965
mov edx, dword [ebp - 0x760]
mov dword [ebp - 0x3f0], edx
jmp 0x409bfc
mov eax, dword [ebp - 0x320]
add eax, dword [ebp - 0x15f0]
mov dword [ebp - 0x754], eax
jne 0x40998a
invalid
invalid
invalid
clc
invalid