Function at 0x409db0
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, 0xf0
cmp dword [ecx + 0x20], 0
je 0x409e17
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xb], 0
test eax, eax
je 0x409e1e
cmp al, 0x64
jb 0x409e2d
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx ecx, cx
shr ecx, 0xc
imul edx, ecx, 0x64
sub al, dl
movzx eax, al
mov edx, eax
and edx, 0x7d
mov edi, eax
and edi, 2
or eax, 2
imul eax, edi
xor edi, 2
imul edi, edx
movzx eax, word [edi + eax + 0x440528]
mov word [esp + 9], ax
mov edx, 1
mov eax, ecx
jmp 0x409e36
mov bl, 1
jmp 0x40a42c
lea eax, [esp + 0xa]
mov dword [esp + 0xc], eax
mov byte [esp + 0xa], 0x30
jmp 0x409e62
mov edx, 3
cmp al, 9
ja 0x409e4d
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea ecx, [esp + edx]
add ecx, 7
mov dword [esp + 0xc], ecx
mov byte [esp + edx + 7], al
jmp 0x409e62
movzx eax, word [eax + eax + 0x440528]
lea ecx, [esp + 9]
mov dword [esp + 0xc], ecx
mov word [esp + 9], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406c10
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x30], eax
lea ebx, [esp + 0xcb]
push ebx
call fcn.00435150
add esp, 4
mov dword [esp + 0x34], edi
lea eax, [edi + 0x400]
push eax
call fcn.00408b20
add esp, 4
mov edi, eax
mov dword [esp + 0x38], 0x8f8b9c8e
mov byte [esp + 0x3c], 0x2a
mov word [esp + 0x3d], 0
mov byte [esp + 0x3f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x409f15
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add edx, 0xe178685
add eax, 0x85
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x5d
mov ecx, dword [esp]
mov byte [esp + ecx + 0x38], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x409ed0
lea eax, [esp + 0x38]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.004096b0
mov dword [esp + 0x38], 0xfb1c6256
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 8
ja 0x409f86
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0x3d0f1e1f]
add eax, 0x1f
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0x27
mov ecx, dword [esp]
mov byte [esp + ecx + 0x38], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x409f50
mov ecx, esi
push dword [esp + 0xc]
push ebx
mov dword [esp + 0x14], edi
push edi
call fcn.004096b0
mov eax, dword [str.AB15g1__]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x73d6c4c0
mov dword [esp + 0x3c], 0
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 8
ja 0x40a01a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x38]
lea ebx, [ecx - 0x62bcb3b2]
and ebx, edx
lea edi, [ecx + 0x4e]
mov eax, 0xb1
sub eax, ecx
and eax, edi
and eax, edx
add ecx, edx
add ecx, 0x9d434c4e
lea eax, [eax + ebx*2]
sub ecx, eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
add al, 0xde
mov ecx, dword [esp]
mov byte [esp + ecx + 0x38], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 9
jb 0x409fd0
mov ecx, esi
push dword [esp + 0x2c]
lea ebx, [esp + 0x3c]
push ebx
mov edi, dword [esp + 0x14]
push edi
call fcn.004096b0
mov dword [esp + 0x38], 0xbfb6becb
mov dword [esp + 0x3c], 0xd2a3aaa3
mov dword [esp + 0x40], 0xa4a1bad3
mov byte [esp + 0x44], 0x5a
mov dword [esp + 0x45], 0
mov byte [esp + 0x49], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x11
ja 0x40a0a6
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + 0x7e17460b]
add eax, 0xb
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
add al, 0xb3
mov ecx, dword [esp]
mov byte [esp + ecx + 0x38], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x12
jb 0x40a070
mov dword [esp + 0x10], 0x33b8c8c9
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0xf
ja 0x40a125
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x10]
lea edx, [eax - 0x7d7bfc07]
add eax, 0xf9
and eax, ecx
or edx, ecx
sub edx, eax
mov dword [esp], edx
mov eax, dword [esp]
mov ecx, eax
or ecx, 0x30
and eax, 0x30
add eax, ecx
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x10
jb 0x40a0e0
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.004096b0
mov dword [esp + 0x38], 0xf6fef4f6
mov byte [esp + 0x3c], 0x68
mov dword [esp + 0x3d], 0
mov dword [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x40a1a5
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x38]
lea edx, [eax + ecx]
add edx, 0xe233b0d2
add eax, 0xd2
and eax, ecx
add eax, eax
mov ecx, eax
xor ecx, edx
not eax
and eax, edx
add eax, eax
sub eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add al, 0x42
mov ecx, dword [esp]
mov byte [esp + ecx + 0x38], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x40a160
mov ecx, esi
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebx
push edi
call fcn.00409960
mov eax, dword [esi + 0x60]
mov dword [esp + 0x38], 0x63f565ab
mov dword [esp + 0x3c], 0x6ffc61f0
mov dword [esp + 0x40], 0x6bfe6dc5
mov dword [esp + 0x44], 0x57bb69f6
mov dword [esp + 0x48], 0x53d355ea
mov dword [esp + 0x4c], 0x5ffb51c2
mov dword [esp + 0x50], 0x5bbc5d98
mov dword [esp + 0x54], 0x47c359c9
mov dword [esp + 0x58], 0x43d845d2
mov dword [esp + 0x5c], 0x4fd041d5
mov dword [esp + 0x60], 0x4bd24de1
mov dword [esp + 0x64], 0x379949d6
mov dword [esp + 0x68], 0x33a5359c
mov dword [esp + 0x6c], 0x3fa331ac
mov dword [esp + 0x70], 0x3b903ded
mov dword [esp + 0x74], 0x27a43995
mov dword [esp + 0x78], 0x23e12589
mov dword [esp + 0x7c], 0x2f8e21c2
mov dword [esp + 0x80], 0x2bb72dbf
mov dword [esp + 0x84], 0x178429b8
mov dword [esp + 0x88], 0x138a15b9
mov dword [esp + 0x8c], 0x1fd31195
mov dword [esp + 0x90], 0x1bb71db0
mov dword [esp + 0x94], 0x7c319c2
mov dword [esp + 0x98], 0x3af05aa
mov dword [esp + 0x9c], 0xf9701d9
mov dword [esp + 0xa0], 0xba00d9e
mov dword [esp + 0xa4], 0xf7a5099b
mov dword [esp + 0xa8], 0xf35ff561
mov dword [esp + 0xac], 0xff6ef16c
mov dword [esp + 0xb0], 0xfb23fd55
mov dword [esp + 0xb4], 0xe70ef909
mov word [esp + 0xb8], 0xe5e6
mov word [esp + 0xc2], 0
mov dword [esp + 0xbe], 0
mov dword [esp + 0xba], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x8b
ja 0x40a360
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x38]
lea edi, [ecx + edx]
add edi, 0x93be6211
add ecx, 0x93be6211
and ecx, edx
add ecx, ecx
sub edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x10]
add cl, 0x89
mov edx, dword [esp]
mov byte [esp + edx + 0x38], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x8c
jb 0x40a320
mov dword [esp + 0x10], 0xfb5bf9d7
mov dword [esp + 0x14], 0xff67fd6a
mov word [esp + 0x18], 0xf1fe
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x21], 0
mov dword [esp + 4], 0
mov ecx, dword [esp + 4]
cmp ecx, 0x14
ja 0x40a3f3
mov edx, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx edi, byte [esp + ecx + 0x10]
lea ecx, [edx + edi]
add ecx, 0x279de5ff
add edx, 0x279de5ff
mov ebx, edi
not ebx
or ebx, edx
and edx, edi
add edx, edi
add edx, ebx
inc edx
mov edi, ecx
not edi
and edi, edx
not edx
and edx, ecx
sub edx, edi
mov dword [esp], edx
mov ecx, dword [esp]
add cl, 7
mov edx, dword [esp + 4]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 4]
mov ecx, dword [esp + 4]
cmp ecx, 0x15
jb 0x40a3a0
push 0x493e0
push eax
mov edi, dword [esp + 0x14]
push edi
push 0
push 0
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040da90
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408b30
add esp, 4
mov eax, dword [esi + 0x60]
add dword [esi + 4], eax
mov dword [esi + 0x60], 0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret