Function at 0x4066a0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x110
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov bl, 0x29
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0x5d37
mov word [esp + 0xf6], 0x4e89
mov byte [esp + 0xf5], 0xa4
mov dword [esp + 0xf0], 0x19af
mov edi, dword [esp + 0x100]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x104]
mov dword [esp + 0x104], 0
mov dword [esp + 0x100], 0x296c
mov bh, byte [esp + 0xf5]
mov dword [esp + 0x7c], eax
mov al, 0x16
sub al, bh
mov byte [esp + 0xa3], al
mov byte [esp + 0x109], 0xbd
mov byte [esp + 0xcb], 0xeb
mov byte [esp + 0x7b], al
mov ax, word [esp + 0x10a]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0xf8]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xfc]
mov word [esp + 0x10a], 0
mov dword [esp + 0x6c], ecx
xor ecx, ecx
mov dword [esp + 0x68], ecx
mov ecx, 0xaf8b
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x70]
sub ecx, edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
sbb edx, ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov ecx, dword [esp + 0xf0]
mov edx, 0x527d
sub edx, ecx
mov dword [esp + 0xdc], edx
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xfc]
add ecx, 0x16a
adc edx, 0
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov cl, byte [esp + 0x7b]
cmp bl, cl
mov byte [esp + 0x5f], bh
mov word [esp + 0x5c], ax
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], esi
ja 0x406bee
mov eax, 0x769af
mov ecx, 0x2e396
mov edx, 0x3cbf
mov esi, dword [esp + 0x80]
mov dword [esp + 0xcc], esi
mov edi, dword [esp + 0x74]
mov dword [esp + 0xd0], edi
sub edx, dword [esp + 0xf0]
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x84], ebx
mov esi, dword [esp + 0xf0]
add esi, 0xe590
mov edi, dword [esp + 0x54]
mov dword [esp + 0xc4], edi
mov dword [esp + 0x88], edx
mov dword [esp + 0x98], esi
mov dl, byte [esp + 0x5f]
or dl, 0x65
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xf0]
mov ebx, dword [esp + 0xc4]
mov byte [esp + 0x109], dl
sub ecx, edi
xor esi, 0x19af
sub eax, dword [esp + 0xf0]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
call ebx
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0x84]
mov esi, esp
mov edi, dword [esp + 0x48]
mov dword [esi + 8], edi
mov ebx, dword [esp + 0x50]
mov dword [esi + 4], ebx
mov dword [esi], eax
call ecx
sub esp, 0xc
lea ecx, section..data
mov esi, 0x19af
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xf0]
xor eax, 0x19af
sub esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xd0]
mov dword [ebx], edi
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0xb8]
mov edi, dword [esp + 0x84]
mov ebx, esp
mov edx, dword [esp + 0x4c]
mov dword [ebx + 8], edx
mov dword [ebx + 4], esi
mov dword [ebx], ecx
mov dword [esp + 0x44], eax
call edi
sub esp, 0xc
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xec], eax
mov dword [esp + 0xac], 0
mov eax, dword [esp + 0xf0]
mov ecx, dword [esp + 0xac]
add eax, 0xffffe672
cmp ecx, eax
jae 0x406a85
mov al, 0xee
mov ecx, dword [esp + 0xa8]
mov ecx, dword [ecx + 0x10c]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0x58]
or ecx, ecx
mov edx, dword [esp + 0x7c]
or edx, edx
mov dword [esp + 0x104], edx
mov dword [esp + 0x100], ecx
sub al, byte [esp + 0xf5]
mov si, word [esp + 0x5c]
add si, 0x9d6
mov ecx, dword [esp + 0xa8]
mov word [esp + 0x10a], si
mov si, word [ecx + 0x78]
mov ah, byte [esp + 0x5f]
xor ah, 0xff
mov bl, byte [esp + 0xcb]
movzx ecx, si
mov byte [esp + 0x109], ah
mov dword [esp + 0x9c], ecx
cmp bl, al
je 0x406947
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xc0]
mov esi, esp
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], edx
call fcn.00403ea0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
sub eax, 0x6af2
seta bl
test ecx, ecx
setne bh
mov byte [esp + 0x43], bh
mov dword [esp + 0x3c], eax
mov byte [esp + 0x3b], bl
je 0x406a32
mov al, byte [esp + 0x43]
mov byte [esp + 0x3b], al
mov al, byte [esp + 0x3b]
test al, al
jne 0x406a85
jmp 0x406a3c
mov eax, dword [esp + 0xc0]
add eax, dword [esp + 0x9c]
mov dword [esp + 0xc0], eax
mov eax, 0x19b0
mov ecx, dword [esp + 0xac]
sub eax, dword [esp + 0xf0]
add ecx, eax
mov dword [esp + 0xac], ecx
mov eax, dword [esp + 0xa8]
add eax, 0x110
mov dword [esp + 0xa8], eax
jmp 0x406947
mov ax, 0x4f8b
mov cl, byte [esp + 0x5f]
add cl, 0xa9
mov edx, dword [esp + 0xf0]
mov byte [esp + 0x109], cl
mov esi, dword [esp + 0xf0]
mov edi, 0x19c2
sub edi, edx
xor esi, 0xb20cc2d7
mov edx, esp
mov dword [edx + 4], edi
mov dword [edx], esi
mov word [esp + 0x38], ax
call fcn.004048b0
mov dword [esp + 0xa4], eax
mov edx, dword [esp + 0xd0]
movsd xmm0, qword [esp + 0x90]
mov edx, dword [edx]
mov esi, dword [esp + 0xdc]
movsd qword [esp + 0xe0], xmm0
mov cl, byte [esp + 0x5f]
mov byte [esp + 0x109], cl
mov edi, dword [esp + 0xf0]
add edi, 0x2b038
mov bx, word [esp + 0x38]
sub bx, word [esp + 0xf6]
mov ecx, dword [esp + 0xd8]
mov dword [esp + 0x34], eax
mov eax, esp
mov dword [esp + 0x30], eax
lea eax, [esp + 0xec]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], edi
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], ecx
movzx edx, bx
mov dword [eax], edx
mov dword [eax + 8], 0x3a800
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], esi
call edx
sub esp, 0x18
mov ecx, 0x4914
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xd8]
mov dword [eax], edx
mov eax, dword [esp + 0x24]
cmp ecx, eax
jbe 0x406a85
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0xfc]
add eax, 0xffffc606
adc ecx, 0xffffffff
mov edx, dword [esp + 0xec]
mov dword [esp + 0xd4], edx
mov edx, dword [esp + 0xe0]
mov esi, dword [esp + 0xe4]
sub edx, eax
setbe bl
sub esi, ecx
setbe bh
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
mov byte [esp + 0x1b], bh
mov byte [esp + 0x1a], bl
je 0x406be0
mov al, byte [esp + 0x1b]
mov byte [esp + 0x1a], al
mov al, byte [esp + 0x1a]
test al, al
jne 0x406a51
jmp 0x406bee
xor eax, eax
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xcc]
mov dword [edx], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret