Function at 0x40d140
Capabilities:
Contain obfuscated stackstrings
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], 0xb05
mov byte [esp + 0x16], 0x12
mov word [esp + 0x17], 0
mov byte [esp + 0x19], 0
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
cmp edx, 5
ja 0x40d1e3
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, dword [esp + 8]
mov edx, dword [esp + 8]
movzx edx, byte [esp + edx + 0x14]
mov edi, esi
not edi
or edi, 0x42c952fc
add edi, esi
xor esi, 0xc2c952fc
lea ebx, [esi + edi*2]
lea esi, [esi + edi*2]
add esi, 2
lea edi, [edx + ebx]
add edi, 2
not edx
or esi, edx
sub edx, esi
lea edx, [edi + edx*2]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov esi, edx
not esi
and esi, 0xec
and edx, 0x13
sub edx, esi
mov esi, dword [esp + 8]
mov byte [esp + esi + 0x14], dl
inc dword [esp + 8]
mov edx, dword [esp + 8]
cmp edx, 6
jb 0x40d180
mov dword [esp + 8], 0x22202cc6
mov word [esp + 0xc], 0x1522
mov dword [esp + 0xe], 0
mov byte [esp + 0x12], 0
mov dword [esp], 0
mov edx, dword [esp]
cmp edx, 0xa
ja 0x40d24b
nop
nop
mov edx, dword [esp]
mov esi, dword [esp]
movzx esi, byte [esp + esi + 8]
mov edi, edx
xor edi, 0xc9be6ac6
and edx, 0xc9be6ac6
lea edx, [edi + edx*2]
xor edx, esi
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x1c]
add dl, 0x22
mov esi, dword [esp]
mov byte [esp + esi + 8], dl
inc dword [esp]
mov edx, dword [esp]
cmp edx, 0xb
jb 0x40d210
mov dword [esp + 0x1c], 0x5a58dcdd
mov dword [esp + 0x20], 0x5e5e282c
mov dword [esp + 0x24], 0x536e582d
mov dword [esp + 0x28], 0x5653526f
mov dword [esp + 0x2c], 0x364b6766
mov dword [esp + 0x30], 0x702d1311
mov dword [esp + 0x34], 0x7d437d72
mov dword [esp + 0x38], 0x42263870
mov dword [esp + 0x3c], 0x48457977
mov dword [esp + 0x40], 0x407b497d
mov dword [esp + 0x44], 0x753e1742
mov dword [esp + 0x48], 0xe4f434f
mov dword [esp + 0x4c], 0x665a7874
mov dword [esp + 0x50], 0x62502503
mov dword [esp + 0x54], 0x210b6c55
mov byte [esp + 0x58], 0xcc
mov dword [esp + 0x59], 0
mov byte [esp + 0x5d], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0x41
ja 0x40d337
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov esi, dword [esp + 4]
movzx esi, byte [esp + esi + 0x1c]
mov edi, edx
xor edi, 0x68f06e7e
and edx, 0xe8f06e7e
lea edx, [edi + edx*2]
xor edx, esi
mov dword [esp], edx
mov edx, dword [esp]
mov esi, edx
xor esi, 0x76
and edx, 9
add edx, edx
sub edx, esi
mov esi, dword [esp + 4]
mov byte [esp + esi + 0x1c], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0x42
jb 0x40d2f0
mov esi, dword [esp + 0x74]
movzx ebx, byte [esp + 0x1c]
mov edx, eax
test bl, bl
je 0x40d35b
lea edi, [esp + 0x1d]
mov edx, eax
nop
nop
nop
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40d350
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40d37b
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 0x40d370
mov esi, dword [esp + 0x78]
mov byte [edx], 0
movzx ebx, byte [esp + 8]
test bl, bl
je 0x40d39b
lea edi, [esp + 9]
nop
mov byte [edx], bl
inc edx
movzx ebx, byte [edi]
inc edi
test bl, bl
jne 0x40d390
mov byte [edx], 0
movzx ebx, byte [esi]
test bl, bl
je 0x40d3bb
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 0x40d3b0
mov byte [edx], 0
movzx ebx, byte [esp + 0x14]
test bl, bl
je 0x40d3db
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 0x40d3d0
mov byte [edx], 0
sub edx, eax
add dword [ecx + 0x60], edx
add esp, 0x60
pop esi
pop edi
pop ebx
ret 0xc