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

Disassembly:
sub esp, 0x18
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
add eax, 0xfffff3da
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], eax
lea esi, [ebx - 0x160b]
mov dword [esp + 0x10], eax
xor edi, 0xfa5
mov dword [esp + 0x34], esi
lea ebp, [esi + 0x142c]
mov dword [esp + 0x24], edi
xor ebx, 0x1b2f
mov dword [esp + 0x18], ebp
add ecx, 0xfffff05b
mov edx, edi
cmp ebx, ebp
mov dword [esp + 0x2c], edx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x30], ecx
je 0x41ab3f
mov ecx, dword [0x83a354]
add ebx, 0x3d4
mov eax, dword [ecx + 0xe8]
sub eax, 0x36730
imul eax, dword [ecx + 0x114]
mov dword [ecx + 0x114], eax
mov ecx, dword [0x83a354]
mov eax, dword [0x847be4]
mov dword [ecx + 0xa0], eax
mov eax, dword [0x847ad0]
sub dword [ebp + 0xa0], eax
mov eax, dword [esp + 0x18]
mov esi, eax
mov ecx, dword [esp + 0x30]
xor esi, 0x181
mov dword [esp + 0x34], eax
lea eax, [edx + 0xe5b]
push eax
push esi
push ebp
lea eax, [ecx + 0x15ad]
push eax
lea eax, [ecx + 0x13dc]
xor ecx, 0x1332
push eax
mov eax, dword [esp + 0x24]
xor eax, 0x100e
push eax
push ecx
call fcn.0041a780
mov dword [esp + 0x2c], eax
lea ecx, [edi + 0x15ad]
mov eax, ecx
mov dword [esp + 0x48], ecx
xor eax, 0x198b
push eax
push dword [0x83a354]
lea eax, [edi + 0x13f0]
push eax
mov eax, dword [esp + 0x3c]
add eax, 0x100e
push esi
push eax
lea eax, [edi + 0xd24]
push eax
lea eax, [ecx - 0x4b5]
push eax
call fcn.00407800
mov edx, dword [esp + 0x64]
add esp, 0x38
cmp dword [ebp + 0xd8], 0x9b2b
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
je 0x41ab3f
mov dword [ebp + 0xa8], 0x41efc0
xor eax, 0x5fb
cmp edx, eax
je 0x41adc6
mov eax, dword [esp + 0x10]
add eax, 0x845
cmp esi, eax
jg 0x41acdc
xor esi, esi
mov eax, dword [ebp + 0xa8]
mov ecx, dword [esi + eax]
add esi, 4
mov eax, dword [0x847bb8]
xor eax, 0x36736
sub dword [ebp + 8], eax
mov ebx, dword [0x847b50]
mov eax, dword [0x83a354]
imul ebx, ecx
mov ecx, dword [eax + 0xac]
mov eax, dword [0x847b60]
mov edx, ebx
shr edx, 8
mov byte [eax + ecx], dl
inc dword [0x847b60]
mov ecx, dword [0x83a354]
mov eax, dword [ecx + 0xc8]
sub eax, 0x11
add dword [ecx + 0x10c], eax
mov ecx, dword [0x83a354]
mov eax, dword [0x847bd4]
add eax, 0xfffffff6
xor dword [0x847bf8], eax
mov eax, dword [ecx + 0x6c]
add eax, dword [ebp + 0x94]
xor eax, 0xfffd25e2
imul eax, dword [ecx + 0x140]
mov dword [ecx + 0x140], eax
xor eax, eax
inc eax
mov ecx, dword [0x847b60]
sub eax, dword [0x847be0]
add dword [0x847b34], eax
mov eax, dword [0x83a354]
mov eax, dword [eax + 0x14c]
xor eax, dword [0x847ad8]
xor eax, 0xe
mov dword [0x847ad8], eax
mov eax, dword [0x847b7c]
mov byte [eax + ecx], bl
mov eax, 0xfff6e443
inc dword [0x847b60]
mov edx, dword [0x83a354]
mov ecx, dword [edx + 0x78]
xor ecx, dword [ebp + 0x140]
sub eax, ecx
add dword [0x847b10], eax
mov eax, dword [0x847b2c]
dec eax
add eax, dword [ebp + 0x110]
mov dword [0x847b2c], eax
mov eax, dword [edx + 8]
xor eax, 0xdb9af
sub dword [ebp + 0xf8], eax
mov eax, dword [0x83a354]
mov ecx, dword [eax + 0x78]
mov eax, dword [ebp + 0x104]
add eax, 0x91bb6
add eax, ecx
xor dword [ebp + 0xf8], eax
mov eax, dword [ebp + 0x54]
sub eax, dword [ebp + 0x40]
xor eax, dword [0x847b98]
xor eax, 0xfffa8142
mov dword [0x847b98], eax
mov eax, dword [0x83a354]
mov eax, dword [eax + 0x14]
sub eax, dword [ebp + 0x74]
sub eax, 0x10fd99
xor dword [ebp + 0x94], eax
cmp esi, 0xf19c8
jl 0x41ab5f
mov ecx, dword [0x83a354]
mov eax, dword [ecx + 0x5c]
sub eax, dword [0x847ba8]
add eax, 0x678757e7
add edi, 0x9c0
mov dword [ecx + 0x80], eax
mov dword [ebp + 0xa8], 0x520000
jmp 0x41adc6
mov eax, dword [ebp + 0x14c]
or eax, ebx
mov dword [esp + 0x18], edi
cmp edi, eax
jb 0x41ad73
mov esi, edi
mov eax, dword [ebp + 0xfc]
or eax, ecx
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x41ad58
mov eax, ecx
or eax, 0x142c
mov dword [esp + 0x20], eax
mov eax, edi
mov edx, dword [esp + 0x20]
xor eax, 0xffffffdf
and eax, 0x13f0
mov esi, eax
mov eax, dword [ebp + 0x124]
add dword [esp + 0x10], 3
add eax, edi
imul ebx, eax
mov eax, dword [0x847bf0]
add eax, edx
imul eax, dword [0x847bfc]
mov dword [0x847bfc], eax
mov dword [ebp + 0x110], esi
mov eax, dword [ebp + 0xfc]
or eax, ecx
cmp dword [esp + 0x10], eax
jae 0x41ad1d
mov esi, dword [esp + 0x18]
mov eax, dword [ebp + 0x14c]
add esi, 3
or eax, ebx
mov dword [esp + 0x18], esi
cmp esi, eax
jae 0x41acf2
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
xor esi, dword [esp + 0x14]
mov eax, dword [ebp + 0xf4]
cmp eax, esi
je 0x41adc6
mov ebx, dword [esp + 0x34]
and edx, edi
mov dword [esp + 0x2c], edx
sub esi, eax
mov edi, edx
mov ecx, dword [0x83a354]
mov eax, dword [ebp + 0x10c]
push edi
add eax, ebx
push ebp
push eax
imul eax, dword [ecx + 0x9c], 0xe5b
or eax, ebx
push eax
mov eax, dword [ecx + 0x78]
add eax, dword [esp + 0x40]
push eax
call fcn.00418230
add esp, 0x14
sub esi, 1
jne 0x41ad8f
mov edi, dword [esp + 0x24]
xor edi, 0x1af2
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret