Function at 0x401fa0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
mov ecx, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, eax
movzx eax, byte [ecx]
cdq
shld edx, eax, 8
push edi
shl eax, 8
mov edi, eax
movzx eax, byte [ecx + 1]
mov ebx, edx
cdq
or edi, eax
movzx eax, byte [ecx + 2]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 3]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 4]
or ebx, edx
shld ebx, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 5]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 6]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 7]
or ebx, edx
shld ebx, edi, 8
cdq
shl edi, 8
or edi, eax
xor edi, dword [esi + 0x10]
movzx eax, byte [ecx + 8]
or ebx, edx
cdq
shld edx, eax, 8
shl eax, 8
mov dword [esp + 0x1c], edi
mov edi, eax
movzx eax, byte [ecx + 9]
xor ebx, dword [esi + 0x14]
mov ebp, edx
cdq
or edi, eax
movzx eax, byte [ecx + 0xa]
or ebp, edx
shld ebp, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0xb]
or ebp, edx
shld ebp, edi, 8
cdq
shl edi, 8
or edi, eax
movzx eax, byte [ecx + 0xc]
or ebp, edx
shld ebp, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 0xd]
or ebp, edx
shld ebp, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 0xe]
or ebp, edx
shld ebp, edi, 8
shl edi, 8
cdq
or edi, eax
movzx eax, byte [ecx + 0xf]
or ebp, edx
shld ebp, edi, 8
shl edi, 8
cdq
or edi, eax
xor edi, dword [esi + 0x18]
or ebp, edx
xor ebp, dword [esi + 0x1c]
cmp dword [esi + 0x110], 0x80
je 0x4021a6
mov eax, dword [esi + 0x10c]
mov ecx, dword [esi + 0x108]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push ebx
push edx
call fcn.00401710
mov ecx, dword [esi + 0x100]
xor edi, eax
mov eax, dword [esi + 0x104]
push eax
push ecx
xor ebp, edx
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x3c]
xor ebx, edx
mov edx, dword [esi + 0xfc]
xor ecx, eax
mov eax, dword [esi + 0xf8]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00401710
mov ecx, dword [esi + 0xf4]
xor ebp, edx
mov edx, dword [esi + 0xf0]
push ecx
push edx
xor edi, eax
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x5c]
xor ecx, eax
mov eax, dword [esi + 0xec]
add esp, 0x40
xor ebx, edx
mov edx, dword [esi + 0xe8]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x2c], ecx
call fcn.00401710
mov ecx, dword [esi + 0xe0]
xor edi, eax
mov eax, dword [esi + 0xe4]
push eax
push ecx
xor ebp, edx
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x3c]
xor ecx, eax
mov eax, dword [esi + 0x4c]
xor ebx, edx
mov edx, dword [esi + 0x48]
and eax, ebx
add esp, 0x20
rol eax, 1
xor eax, ecx
xor ecx, ecx
or ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x40]
or edx, eax
mov eax, dword [esi + 0x44]
or ecx, edi
xor edx, ebx
xor ecx, ebp
xor ebx, ebx
and eax, ecx
or ebx, edx
rol eax, 1
xor edi, eax
xor edx, edx
xor ebp, ebp
or edi, edx
or ebp, ecx
mov eax, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd8]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push ebx
push edx
call fcn.00401710
mov ecx, dword [esi + 0xd0]
xor edi, eax
mov eax, dword [esi + 0xd4]
push eax
push ecx
xor ebp, edx
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x3c]
xor ebx, edx
mov edx, dword [esi + 0xcc]
xor ecx, eax
mov eax, dword [esi + 0xc8]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00401710
mov ecx, dword [esi + 0xc4]
xor ebp, edx
mov edx, dword [esi + 0xc0]
push ecx
push edx
xor edi, eax
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x5c]
xor ecx, eax
mov eax, dword [esi + 0xbc]
add esp, 0x40
xor ebx, edx
mov edx, dword [esi + 0xb8]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x2c], ecx
call fcn.00401710
mov ecx, dword [esi + 0xb0]
xor edi, eax
mov eax, dword [esi + 0xb4]
push eax
push ecx
xor ebp, edx
push ebp
push edi
call fcn.00401710
mov ecx, dword [esp + 0x3c]
xor ecx, eax
mov eax, dword [esi + 0x3c]
xor ebx, edx
mov edx, dword [esi + 0x38]
and eax, ebx
rol eax, 1
xor eax, ecx
or edx, eax
xor ecx, ecx
or ecx, eax
mov eax, dword [esi + 0x30]
xor ebx, edx
xor edx, edx
or eax, edi
or ebx, edx
mov edx, dword [esi + 0x34]
xor eax, ebp
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xac]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
push eax
mov edx, dword [esi + 0xa8]
push edx
push ebx
push ecx
call fcn.00401710
mov ebp, eax
mov eax, dword [esp + 0x48]
and eax, dword [esp + 0x40]
xor ecx, ecx
or ecx, dword [esp + 0x40]
rol eax, 1
xor eax, edi
xor edi, edi
or eax, edi
xor ebp, eax
mov eax, dword [esi + 0xa4]
xor edx, ecx
mov ecx, dword [esi + 0xa0]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x58], edx
call fcn.00401710
mov edi, dword [esp + 0x5c]
add esp, 0x40
xor ebx, edx
mov edx, dword [esi + 0x9c]
xor edi, eax
mov eax, dword [esi + 0x98]
push edx
push eax
push ebx
push edi
call fcn.00401710
mov ecx, dword [esi + 0x94]
xor ebp, eax
mov eax, dword [esp + 0x28]
xor eax, edx
mov edx, dword [esi + 0x90]
push ecx
push edx
push eax
push ebp
mov dword [esp + 0x38], eax
call fcn.00401710
mov ecx, dword [esi + 0x88]
xor edi, eax
mov eax, dword [esi + 0x8c]
push eax
push ecx
xor ebx, edx
push ebx
push edi
call fcn.00401710
mov ecx, dword [esi + 0x80]
xor ebp, eax
mov eax, dword [esp + 0x48]
xor eax, edx
mov edx, dword [esi + 0x84]
push edx
push ecx
push eax
push ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
call fcn.00401710
mov ecx, dword [esi + 0x28]
xor edi, eax
mov eax, dword [esi + 0x2c]
xor ebx, edx
and eax, ebx
add esp, 0x40
rol eax, 1
xor eax, edi
or ecx, eax
xor ecx, ebx
xor ebx, ebx
xor edx, edx
mov edi, ecx
or ebx, eax
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
or eax, ebp
xor eax, dword [esp + 0x18]
or edi, edx
mov edx, dword [esi + 0x7c]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x78]
push eax
push edi
push ebx
mov dword [esp + 0x30], ecx
call fcn.00401710
mov ecx, dword [esp + 0x30]
and ecx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
rol ecx, 1
xor ecx, dword [esp + 0x24]
mov ebp, edx
xor eax, eax
or ecx, eax
mov eax, dword [esp + 0x34]
xor edx, edx
or edx, dword [esp + 0x20]
xor eax, ecx
mov ecx, dword [esi + 0x74]
xor ebp, edx
mov edx, dword [esi + 0x70]
push ecx
push edx
push ebp
push eax
mov dword [esp + 0x34], eax
call fcn.00401710
mov ecx, dword [esi + 0x68]
xor ebx, eax
mov eax, dword [esi + 0x6c]
push eax
push ecx
xor edi, edx
push edi
push ebx
call fcn.00401710
xor dword [esp + 0x44], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esp + 0x44]
xor ebp, edx
mov edx, dword [esi + 0x64]
push edx
push eax
push ebp
push ecx
call fcn.00401710
add esp, 0x40
xor edi, edx
mov edx, dword [esi + 0x5c]
xor ebx, eax
mov eax, dword [esi + 0x58]
push edx
push eax
push edi
push ebx
call fcn.00401710
mov ecx, dword [esi + 0x54]
xor dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
xor ebp, edx
mov edx, dword [esi + 0x50]
push ecx
push edx
push ebp
push eax
call fcn.00401710
mov ecx, dword [esp + 0x34]
xor ecx, dword [esi]
add esp, 0x20
xor ebx, eax
xor edi, edx
xor ebp, dword [esi + 4]
mov dword [esp + 0x14], ecx
xor ebx, dword [esi + 8]
xor edi, dword [esi + 0xc]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x40259d
movzx eax, byte [esi]
cdq
shld edx, eax, 8
shl eax, 8
mov ecx, eax
movzx eax, byte [esi + 1]
mov esi, edx
cdq
or ecx, eax
or esi, edx
shld esi, ecx, 8
mov edx, dword [esp + 0x38]
movzx eax, byte [edx + 2]
cdq
or esi, edx
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 3]
shld esi, ecx, 8
cdq
or esi, edx
mov edx, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shld esi, ecx, 8
cdq
or esi, edx
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 5]
shld esi, ecx, 8
cdq
or esi, edx
mov edx, dword [esp + 0x38]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
shld esi, ecx, 8
cdq
or esi, edx
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 7]
shld esi, ecx, 8
cdq
shl ecx, 8
or ecx, eax
xor dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x38]
movzx eax, byte [ecx + 8]
or esi, edx
cdq
shld edx, eax, 8
shl eax, 8
xor ebp, esi
mov esi, eax
movzx eax, byte [ecx + 9]
mov ecx, edx
cdq
or esi, eax
or ecx, edx
mov edx, dword [esp + 0x38]
movzx eax, byte [edx + 0xa]
shld ecx, esi, 8
cdq
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 0xb]
or ecx, edx
shld ecx, esi, 8
cdq
shl esi, 8
or esi, eax
or ecx, edx
mov edx, dword [esp + 0x38]
movzx eax, byte [edx + 0xc]
shld ecx, esi, 8
cdq
or ecx, edx
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 0xd]
shld ecx, esi, 8
cdq
or ecx, edx
mov edx, dword [esp + 0x38]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 0xe]
shld ecx, esi, 8
cdq
or ecx, edx
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x38]
movzx eax, byte [eax + 0xf]
shld ecx, esi, 8
cdq
or ecx, edx
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x38]
xor ebx, esi
xor edi, ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
mov edx, ecx
mov esi, ebp
shrd edx, esi, 8
mov byte [eax + 6], dl
mov edx, ecx
shr esi, 8
mov byte [eax + 7], cl
mov esi, ebp
shrd edx, esi, 0x10
mov byte [eax + 5], dl
mov edx, ebp
shrd ecx, edx, 0x18
shr edx, 0x18
mov byte [eax + 4], cl
mov edx, ebp
shr edx, 8
mov byte [eax + 2], dl
mov ecx, ebp
mov byte [eax + 3], cl
shr ecx, 0x10
mov byte [eax + 1], cl
mov edx, ebp
shr edx, 0x18
mov byte [eax], dl
mov ecx, ebx
mov edx, edi
shrd ecx, edx, 8
mov byte [eax + 0xe], cl
shr edx, 8
mov ecx, ebx
mov edx, edi
shrd ecx, edx, 0x10
mov byte [eax + 0xd], cl
mov ecx, edi
mov byte [eax + 0xf], bl
shrd ebx, ecx, 0x18
shr ecx, 0x18
mov ecx, edi
shr ecx, 8
shr edx, 0x10
mov edx, edi
mov byte [eax + 0xa], cl
mov ecx, edi
pop edi
shr esi, 0x10
pop esi
mov byte [eax + 0xb], dl
shr edx, 0x10
shr ecx, 0x18
pop ebp
mov byte [eax + 0xc], bl
mov byte [eax + 9], dl
mov byte [eax + 8], cl
pop ebx
add esp, 0x1c
ret