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

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor dword [esp + 0x14], 0xce7
xor ecx, 0x738
push ebx
push ebp
lea ebx, [edx - 0x108b]
mov dword [esp + 0x18], ecx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebp, edx
mov eax, ebx
xor edx, 0x88e
xor eax, 0x1c5a
mov dword [esp + 0x18], edx
xor ebp, 0x9f3
add edi, 0x209
cmp ecx, eax
je 0x4011a1
mov eax, ebp
xor eax, 0xe97
push eax
lea eax, [edx + 0x1a2]
xor edx, 0x17d
push eax
push edx
push dword [0x4ac344]
mov eax, ebx
xor eax, 0x126
push eax
call fcn.004012a0
mov esi, dword [esp + 0x28]
xor eax, 0xe97
push esi
mov dword [esp + 0x38], eax
xor edi, 0x6f3
add edi, 0x9fc
lea ecx, [eax - 0xc22]
push ecx
mov ecx, dword [esp + 0x34]
add ecx, 0xad
push ecx
lea ecx, [eax + 0x612]
mov eax, dword [esp + 0x44]
push ecx
add eax, 0xfffff91b
push eax
lea eax, [ebp + 0x1f6]
push eax
push edi
call fcn.0041dda0
mov ecx, dword [esp + 0x50]
add esp, 0x30
mov edi, eax
mov edx, dword [0x4ac344]
mov eax, dword [esp + 0x18]
add eax, 0xfffff6b1
mov dword [esp + 0x20], eax
cmp ebx, eax
jle 0x401292
lea eax, [ecx + 0xf5]
cmp edi, eax
jge 0x401292
mov ecx, dword [esp + 0x24]
lea eax, [ebx + 0xecc]
cmp ecx, eax
je 0x401245
lea eax, [ebx + 0xff9]
push eax
push 0x4ae060
lea eax, [ebp - 0xd34]
push eax
lea eax, [ecx - 0x1bf]
push eax
mov eax, ebp
xor eax, 0x514
push eax
call fcn.0041a550
mov edx, dword [esi + 0x40]
add esp, 0x14
cmp edx, dword [esi + 0x58]
ja 0x401171
nop dword [eax + eax]
mov ecx, dword [0x4ac344]
mov eax, dword [esi + 0xdc]
xor eax, 0xffee2bdb
sub dword [ecx + 8], eax
mov ecx, dword [0x4ac344]
mov eax, dword [esi + 0x3c]
sub dword [ecx + 0x3c], eax
mov eax, edx
imul eax, edx
inc edx
add dword [esi + 0xcc], eax
cmp edx, dword [esi + 0x58]
jbe 0x401140
lea eax, [ebx + 0xab0]
xor ebp, 0x827
push eax
push dword [esp + 0x24]
xor edi, 0x526
push esi
push ebp
push edi
call fcn.0041af90
mov eax, dword [esp + 0x2c]
add esp, 0x14
add eax, 0xfffff48b
pop edi
pop esi
pop ebp
pop ebx
ret
mov esi, dword [esp + 0x14]
mov eax, dword [0x4ae13c]
add eax, ecx
cmp dword [esi + 0x30], eax
je 0x4010cb
mov edx, dword [0x4ac344]
mov eax, dword [esi + 0x78]
add eax, dword [esi + 0xec]
mov dword [esp + 0x1c], ebp
imul eax, dword [edx + 0x3c]
cmp ebp, eax
jne 0x4010d1
mov eax, dword [edx + 0x78]
add eax, ebp
imul eax, dword [esi + 0x44]
cmp dword [0x4ae120], eax
jae 0x401220
mov eax, dword [esp + 0x20]
xor ebx, 0x4e9
mov ecx, dword [edx + 0x90]
add eax, 0xfffff1a5
or ecx, dword [esp + 0x24]
and ecx, dword [esi + 0xdc]
push eax
push edx
mov eax, edi
or eax, 0x1715
push eax
push ebx
push ecx
call fcn.0041a550
mov edx, dword [0x4ac344]
add esp, 0x14
mov ebx, eax
mov ecx, dword [esi + 0x78]
add ecx, dword [esi + 0xec]
imul ecx, dword [edx + 0x3c]
mov eax, dword [esp + 0x1c]
add eax, 2
mov dword [esp + 0x1c], eax
cmp eax, ecx
je 0x4011d4
mov ecx, dword [esp + 0x20]
jmp 0x4010d1
mov eax, dword [edx + 0x10]
and edi, 0xd19
imul edi, ecx
cmp eax, edi
jge 0x401292
sub edi, eax
dec edi
shr edi, 2
inc edi
nop dword [eax]
mov eax, dword [esi + 0x44]
and eax, ebx
cmp ebp, eax
jbe 0x40128d
mov eax, dword [edx + 0xf4]
or eax, ebx
and eax, 0x1715
cmp dword [esi + 0x84], eax
je 0x40128d
imul eax, ebx, 0xffffe11a
add dword [edx + 8], eax
mov edx, dword [0x4ac344]
sub edi, 1
jne 0x401260
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add eax, 0xfffff48b
pop ebx
ret