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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [esp + 0x70]
add eax, dword [ecx + 0x60]
mov word [esp + 0x14], 0x206
mov byte [esp + 0x16], 0x33
mov word [esp + 0x17], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 4
ja 0x409fb5
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov esi, dword [esp + 8]
movzx esi, byte [esp + esi + 0x14]
add edx, 0xbc576462
xor edx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
add dl, 0xa9
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x14], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 5
jb 0x409f80
mov dword [esp + 8], 0x406062c
mov word [esp + 0xc], 0xf00
mov dword [esp + 0xe], 0
mov word [esp + 0x12], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xb
ja 0x40a02a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
lea edi, [edx + esi]
add edx, 8
and edx, esi
add edx, edx
sub edi, edx
add edi, 0x113e0008
mov dword [esp + 0x1c], edi
mov edx, dword [esp + 0x1c]
add dl, 0xfe
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xc
jb 0x409ff0
mov dword [esp + 0x1c], 0xd5cd0300
mov dword [esp + 0x20], 0xd1d70709
mov dword [esp + 0x24], 0xdcc7df00
mov dword [esp + 0x28], 0xd9d2d9d6
mov dword [esp + 0x2c], 0x31dacccf
mov dword [esp + 0x30], 0xeb00484c
mov dword [esp + 0x34], 0xe6e2f2eb
mov dword [esp + 0x38], 0xe50f27fd
mov dword [esp + 0x3c], 0xe3e0fefe
mov dword [esp + 0x40], 0xfbfae6f8
mov dword [esp + 0x44], 0xfe372cfb
mov dword [esp + 0x48], 0x31f6e8f6
mov dword [esp + 0x4c], 0x1ebfff9
mov dword [esp + 0x50], 0x50dc2da
mov dword [esp + 0x54], 0xcada0308
mov byte [esp + 0x58], 0xa9
mov dword [esp + 0x59], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x40
ja 0x40a0f3
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x1c]
add edx, 0xf8cd
xor edx, esi
mov dword [esp], edx
mov edx, dword [esp]
add dl, 0x60
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x1c], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x41
jb 0x40a0c0
mov esi, dword [esp + 0x74]
movzx ebx, byte [esp + 0x1c]
mov edx, eax
test bl, bl
je 0x40a11b
lea edi, [esp + 0x1d]
mov edx, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40a110
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40a13b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a130
mov esi, dword [esp + 0x78]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40a15b
lea edi, [esp + 9]
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40a150
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40a17b
inc esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a170
mov byte [edx], 0
movzx ebx, byte [esp + 0x14]
test bl, bl
je 0x40a19b
lea esi, [esp + 0x15]
nop
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [esi]
inc esi
test bl, bl
jne 0x40a190
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
add esp, 0x60
pop esi
pop edi
pop ebx
ret 0xc