Function at 0x4099d0
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, 0xfffffff0
sub esp, 0x110
cmp dword [ecx + 0x20], 0
je 0x409a21
mov esi, ecx
movzx eax, byte [ecx]
mov byte [esp + 0xf], 0
test eax, eax
je 0x409a28
cmp al, 0x64
jb 0x409a37
lea ecx, [eax + eax*4]
lea ecx, [eax + ecx*8]
movzx edx, cx
shr edx, 0xc
imul ecx, edx, 0x64
sub al, cl
movzx eax, al
movzx eax, word [eax + eax + 0x43e7f8]
mov word [esp + 0xd], ax
mov ecx, 1
mov eax, edx
jmp 0x409a40
mov bl, 1
jmp 0x40a06f
lea eax, [esp + 0xe]
mov dword [esp + 0x3c], eax
mov byte [esp + 0xe], 0x30
jmp 0x409a82
mov ecx, 3
cmp al, 9
ja 0x409a57
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
lea edx, [esp + ecx]
add edx, 0xb
mov dword [esp + 0x3c], edx
mov byte [esp + ecx + 0xb], al
jmp 0x409a82
mov ecx, eax
and ecx, 2
mov edx, eax
or eax, 2
imul eax, ecx
xor ecx, 2
and edx, 0x7d
imul edx, ecx
movzx eax, word [edx + eax + 0x43e7f8]
lea ecx, [esp + 0xd]
mov dword [esp + 0x3c], ecx
mov word [esp + 0xd], ax
lea eax, [esi + 0x10]
push eax
call fcn.00406700
add esp, 4
mov edi, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 0xe0], eax
lea ebx, [esp + 0xeb]
push ebx
call fcn.00434a90
add esp, 4
mov dword [esp + 0xe4], edi
lea eax, [edi + 0x800]
push eax
call fcn.00408810
add esp, 4
mov edi, eax
mov dword [esp + 0x40], 0x1f13001e
mov byte [esp + 0x44], 0xba
mov dword [esp + 0x45], 0
mov dword [esp + 0x49], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0xf
ja 0x409b38
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0x4eaf0a17
add ecx, 0x4eaf0a17
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x5f
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x10
jb 0x409b00
lea eax, [esp + 0x40]
mov ecx, esi
push ebx
mov ebx, eax
push eax
push edi
call fcn.00409200
mov word [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x33968880
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x15
ja 0x409bc3
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0x58
add ecx, 0x58
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0x98
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x16
jb 0x409b90
mov ecx, esi
push dword [esp + 0x3c]
push ebx
push edi
call fcn.00409200
mov eax, dword [str.Z05cIW__Vestel]
mov dword [esp + 0x40], 0x4be0eaea
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0xf
ja 0x409c56
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
movzx edx, byte [esp + edx + 0x40]
lea ebx, [ecx + 0x5a08db35]
and ebx, edx
add ecx, edx
add ecx, 0x5a08db35
add ebx, ebx
sub ecx, ebx
mov edx, ecx
xor edx, 0x8c
and ecx, 0xc
lea ecx, [edx + ecx*2]
inc cl
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x10
jb 0x409c10
mov ecx, esi
push eax
lea ebx, [esp + 0x44]
push ebx
push edi
call fcn.00409200
mov dword [esp + 0x40], 0x5f565ea3
mov dword [esp + 0x44], 0xaa5b525b
mov dword [esp + 0x48], 0x444942ab
mov byte [esp + 0x4c], 0x22
mov dword [esp + 0x4d], 0
mov dword [esp + 0x51], 0
mov dword [esp + 0x55], 0
mov dword [esp + 0x59], 0
mov byte [esp + 0x5d], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x1d
ja 0x409cf8
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x10]
movzx edx, byte [esp + eax + 0x40]
lea eax, [ecx + edx]
add eax, 0x85e2b227
add ecx, 0x85e2b227
and ecx, edx
add ecx, ecx
sub eax, ecx
add al, 0xef
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x1e
jb 0x409cc0
mov byte [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0xeb203031
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x14
ja 0x409d65
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
add al, 0x3d
xor al, byte [esp + ecx + 0x10]
add al, 0x55
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x10], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x15
jb 0x409d40
lea eax, [esp + 0x10]
mov ecx, esi
push ebx
push eax
push edi
call fcn.00409200
mov dword [esp + 0x40], 0x36ce3036
mov byte [esp + 0x44], 0x44
mov dword [esp + 0x45], 0
mov dword [esp + 0x49], 0
mov dword [esp + 0x4d], 0
mov word [esp + 0x51], 0
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
cmp eax, 0x12
ja 0x409dd5
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
add al, 0x4c
xor al, byte [esp + ecx + 0x40]
add al, 0xec
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x40], al
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 0x13
jb 0x409db0
mov ecx, esi
push dword [esp + 0xe4]
push dword [esp + 0xe4]
push ebx
push edi
call fcn.004094e0
mov eax, dword [esi + 0x60]
mov dword [esp + 0x40], 0x23912d6b
mov dword [esp + 0x44], 0x27922192
mov dword [esp + 0x48], 0x3b882581
mov dword [esp + 0x4c], 0x3f43398c
mov dword [esp + 0x50], 0x33bb3d68
mov dword [esp + 0x54], 0x37933180
mov dword [esp + 0x58], 0xb6a357a
mov dword [esp + 0x5c], 0xfbb09b5
mov dword [esp + 0x60], 0x3b60db0
mov dword [esp + 0x64], 0x7b601b9
mov dword [esp + 0x68], 0x1bac05a5
mov dword [esp + 0x6c], 0x1f6d19ac
mov dword [esp + 0x70], 0x13a11da6
mov dword [esp + 0x74], 0x17ab11a6
mov dword [esp + 0x78], 0x6bce1569
mov dword [esp + 0x7c], 0x6fda69c9
mov dword [esp + 0x80], 0x632d6dcd
mov dword [esp + 0x84], 0x67c06100
mov dword [esp + 0x88], 0x7bcf65d7
mov dword [esp + 0x8c], 0x7fda79ca
mov dword [esp + 0x90], 0x73c47ddd
mov dword [esp + 0x94], 0x773b71f9
mov dword [esp + 0x98], 0x4bef75d2
mov dword [esp + 0x9c], 0x4f3b4900
mov dword [esp + 0xa0], 0x43e74de8
mov dword [esp + 0xa4], 0x47ff4135
mov dword [esp + 0xa8], 0x5bfe45f4
mov dword [esp + 0xac], 0x5ff959eb
mov dword [esp + 0xb0], 0x53f75de5
mov dword [esp + 0xb4], 0x57e051e6
mov dword [esp + 0xb8], 0xabdb55f1
mov dword [esp + 0xbc], 0xafb0a9b5
mov word [esp + 0xc0], 0xadac
mov dword [esp + 0xcd], 0
mov dword [esp + 0xca], 0
mov dword [esp + 0xc6], 0
mov dword [esp + 0xc2], 0
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x10]
cmp ecx, 0x90
ja 0x409fad
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
movzx ebx, byte [esp + ecx + 0x40]
lea ecx, [edx + ebx]
add ecx, 0xfe0f8106
add edx, 0xfe0f8106
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0xd6
mov edx, dword [esp + 0x10]
mov byte [esp + edx + 0x40], cl
inc dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, 0x91
jb 0x409f70
mov dword [esp + 0x10], 0xbb1bb967
mov dword [esp + 0x14], 0xbf17bd2a
mov word [esp + 0x18], 0xa1be
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov word [esp + 0x2a], 0
mov dword [esp + 8], 0
mov ecx, dword [esp + 8]
cmp ecx, 0x1b
ja 0x40a03a
nop
nop
nop
nop
mov edx, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ebx, byte [esp + ecx + 0x10]
lea ecx, [edx + ebx]
add ecx, 0x4481bd47
add edx, 0x4481bd47
and edx, ebx
add edx, edx
sub ecx, edx
add cl, 0xf
mov edx, dword [esp + 8]
mov byte [esp + edx + 0x10], cl
inc dword [esp + 8]
mov ecx, dword [esp + 8]
cmp ecx, 0x1c
jb 0x40a000
push 0x493e0
push eax
push edi
push 0
push 0
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040dd80
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00408820
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