Function at 0x41e970
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5dc
mov eax, dword [0x57b270]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x5c4], eax
cmp dword [ebx + 0x14], 0
je 0x41e9ab
mov eax, 0x40000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebx + 0x2c], 0
je 0x41e9c7
mov eax, 0x50000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x5dc], eax
cmp dword [ebx], eax
je 0x41e9e8
cmp edi, 4
mov ecx, 0xc
cmovne eax, ecx
mov dword [ebp - 0x5dc], eax
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x238]
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x41e9f3
mov ax, word [ebp - 0x238]
push esi
test ax, ax
je 0x41f79f
lea ecx, [ebp - 0x238]
movzx edx, ax
mov esi, 0x2f
cmp dx, 0x5c
jne 0x41ea2b
mov word [ecx], si
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41ea22
cmp edi, 4
jne 0x41ea6c
lea ecx, [ebp - 0x238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ea47
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x23a], si
je 0x41ea6c
mov byte [ebp - 0x5b9], 1
jmp 0x41eb69
mov byte [ebp - 0x5b9], 0
mov dword [ebp - 0x5d8], 8
cmp edi, 4
je 0x41eb69
lea ecx, [ebp - 0x238]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ea90
sub ecx, edx
lea esi, [ebp - 0x238]
sar ecx, 1
lea eax, [ebp - 0x238]
lea esi, [esi + ecx*2]
cmp esi, eax
jbe 0x41eac5
cmp word [esi], 0x2e
je 0x41ead9
sub esi, 2
lea eax, [ebp - 0x238]
cmp esi, eax
ja 0x41eab2
lea eax, [ebp - 0x238]
cmp esi, eax
jne 0x41ead9
cmp word [esi], 0x2e
jne 0x41eb71
push 0x53f574
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..zip
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..zoo
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..arc
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..lzh
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..arj
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push 0x53f5b8
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
je 0x41eb69
push str..tgz
push esi
call fcn.004fe92b
add esp, 8
test eax, eax
jne 0x41eb71
xor eax, eax
mov dword [ebp - 0x5d8], eax
cmp edi, 2
jne 0x41ec37
mov eax, dword [ebp - 0x5c4]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
test eax, eax
je 0x41ed6a
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c4], eax
cmp eax, 0xffffffff
jne 0x41ebfa
mov esi, 0x200
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
push 0
push eax
mov ecx, ebx
call fcn.0041db80
mov esi, eax
test esi, esi
je 0x41ec2b
push dword [ebp - 0x5c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov byte [ebx + 0x80], 1
jmp 0x41eeaa
cmp edi, 1
jne 0x41ec69
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x5c4]
call fcn.0041db80
mov esi, eax
test esi, esi
je 0x41eeaa
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 3
jne 0x41ed84
mov eax, dword [ebp - 0x5c4]
mov ecx, dword [ebp + 0x10]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x84], eax
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x88], ecx
mov dword [ebx + 0x8c], 0
test eax, eax
je 0x41ed6a
test ecx, ecx
je 0x41ed6a
lea eax, [ebp - 0x248]
mov dword [ebx + 0x4c], SysReAllocStringLen
push eax
mov dword [ebx + 0x70], ecx
mov byte [ebx + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x5cc]
push eax
lea eax, [ebp - 0x5c4]
push eax
push dword [ebp - 0x5d0]
push dword [ebp - 0x5d4]
call fcn.0041d3f0
mov ecx, dword [ebp - 0x5d4]
add esp, 0x10
mov eax, dword [ebp - 0x5d0]
sub ecx, 0xd53e8000
sbb eax, 0x19db1de
push 0
push 0x989680
push eax
push ecx
call fcn.00460bf0
movzx ecx, word [ebp - 0x5c4]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
movzx eax, word [ebp - 0x5cc]
shl ecx, 0x10
or ecx, eax
mov dword [ebx + 0x54], edx
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x68], ecx
jmp 0x41eeaa
mov esi, 0x10000
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
cmp edi, 4
jne 0x41f79f
lea eax, [ebp - 0x258]
mov dword [ebx + 0x7c], 0
push eax
mov dword [ebx + 0x84], 0
mov byte [ebx + 0x80], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x4c], 0x41c00010
mov dword [ebx + 0x70], 0
mov byte [ebx + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea eax, [ebp - 0x5d4]
push eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [ebp - 0x5d4]
mov dword [ebp - 0x5c8], eax
mov eax, dword [ebp - 0x5d0]
mov dword [ebp - 0x5c4], eax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [ebp - 0x5d0]
sub ecx, 0xd53e8000
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.00460bf0
mov ecx, dword [ebp - 0x248]
mov dword [ebx + 0x50], eax
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 0x246]
lea ecx, [ecx - 0x3c]
and eax, 0xf
shl ecx, 4
or ecx, eax
mov dword [ebx + 0x54], edx
mov eax, dword [ebp - 0x242]
shl ecx, 5
and eax, 0x1f
mov dword [ebx + 0x5c], edx
mov dword [ebx + 0x64], edx
movzx edx, cx
mov ecx, dword [ebp - 0x23e]
or edx, eax
mov eax, dword [ebp - 0x240]
and ecx, 0x3f
shl eax, 6
or ecx, eax
shl edx, 0x10
shl ecx, 5
movzx eax, cx
or edx, eax
mov eax, dword [ebp - 0x23c]
add eax, eax
and eax, 0x1f
or edx, eax
mov dword [ebx + 0x68], edx
push 0
push 0
push 0x104
lea eax, [ebp - 0x470]
mov dword [ebp - 0x25c], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
mov byte [ebp - 0x580], 0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x470]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41eee7
sub ecx, edx
mov dword [ebp - 0x5a0], ecx
cmp byte [ebp - 0x5b9], al
je 0x41ef21
lea edi, [ebp - 0x470]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x41ef05
mov ax, word [0x53eca8]
mov word [edi], ax
inc dword [ebp - 0x5a0]
mov edi, dword [ebp + 0x14]
xor eax, eax
mov byte [ebp - 0x36c], 0
cmp dword [ebx], 0
mov word [ebp - 0x58e], ax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0x5b0], eax
mov eax, 8
mov dword [ebp - 0x474], 0
mov dword [ebp - 0x594], 0
mov dword [ebp - 0x268], 1
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x5b8], 0x140b17
mov dword [ebp - 0x5ac], 0
mov word [ebp - 0x5b4], ax
je 0x41ef98
cmp edi, 4
je 0x41ef98
mov eax, 9
mov word [ebp - 0x5b4], ax
mov word [ebp - 0x58c], ax
mov eax, dword [ebp - 0x5d8]
movzx ecx, ax
mov dword [ebp - 0x5cc], ecx
mov word [ebp - 0x5b2], cx
test eax, eax
jne 0x41efd0
mov ecx, dword [ebx + 0x70]
test ecx, ecx
js 0x41efd0
mov eax, dword [ebp - 0x5dc]
add eax, ecx
mov dword [ebp - 0x5a8], eax
jmp 0x41efdd
mov ecx, dword [ebx + 0x70]
mov dword [ebp - 0x5a8], 0
xor eax, eax
mov edx, dword [ebx + 0x5c]
mov word [ebp - 0x590], ax
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x588], eax
mov eax, dword [ebx + 0x10]
add eax, dword [ebx + 0x18]
mov dword [ebp - 0x584], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x47c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x478], eax
mov al, byte [ebx + 0x58]
mov byte [ebp - 0x13], al
mov eax, edx
mov dword [ebp - 0x5a4], ecx
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 8
push ebx
mov byte [ebp - 0x12], cl
mov ecx, dword [ebx + 0x58]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x58]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x54]
mov dword [ebp - 0x5c4], eax
mov byte [ebp - 0x10], al
mov al, byte [ebx + 0x50]
mov byte [ebp - 0xf], al
mov eax, edx
mov byte [ebp - 0x11], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 8
mov dword [ebp - 0x18], 0xd5455
mov byte [ebp - 0xe], cl
mov ecx, dword [ebx + 0x50]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x50]
shrd eax, edx, 0x18
mov edx, dword [ebx + 0x64]
mov byte [ebp - 0xc], al
mov al, byte [ebx + 0x60]
mov byte [ebp - 0xb], al
mov eax, edx
mov byte [ebp - 0xd], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 8
mov byte [ebp - 0x14], 7
movq xmm0, qword [ebp - 0x18]
mov byte [ebp - 0xa], cl
mov ecx, dword [ebx + 0x60]
shrd ecx, eax, 0x10
mov eax, dword [ebx + 0x60]
shrd eax, edx, 0x18
push 0x41d840
mov byte [ebp - 8], al
mov eax, dword [ebp - 0x5c4]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x5b8]
movq qword [ebp - 0x24], xmm0
push eax
mov dword [ebp - 0x59c], 0x11
mov dword [ebp - 0x598], 9
mov byte [ebp - 9], cl
mov byte [ebp - 0x22], 5
call fcn.0041c8a0
add esp, 0xc
test eax, eax
je 0x41f11f
cmp byte [ebx + 0x80], 0
je 0x41f0fa
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x41f0fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], eax
pop esi
pop edi
mov eax, 0x400
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x59c]
add eax, 0x1e
add eax, dword [ebp - 0x5a0]
add dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x41f172
cmp byte [ebx + 0x80], 0
je 0x41f152
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
je 0x41f152
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x74]
pop esi
pop edi
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebx + 0x30], 0x12345678
mov dword [ebx + 0x34], 0x23456789
mov dword [ebx + 0x38], 0x34567890
mov edx, dword [ebx]
test edx, edx
je 0x41f1dd
nop dword [eax]
mov al, byte [edx]
test al, al
je 0x41f1dd
mov ecx, dword [ebx + 0x30]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x53f020]
xor eax, ecx
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x53f020]
mov dword [ebx + 0x38], ecx
add edx, 1
jne 0x41f190
cmp byte [0x581410], 0
jne 0x41f1ff
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
push esi
call fcn.004feb75
add esp, 4
xor esi, esi
call fcn.004feb54
sar eax, 7
mov byte [ebp + esi - 0x30], al
inc esi
cmp esi, 0xc
jl 0x41f201
mov eax, dword [ebp - 0x5b0]
shr eax, 8
xor edi, edi
mov byte [ebp - 0x25], al
mov al, byte [ebp + edi - 0x30]
mov ecx, dword [ebx + 0x30]
mov byte [ebp - 0x5b9], al
movsx eax, al
xor eax, ecx
mov edx, dword [ebx + 0x38]
movzx eax, al
mov esi, edx
shr ecx, 8
and esi, 0xfffd
or esi, 2
mov eax, dword [eax*4 + 0x53f020]
xor eax, ecx
mov dword [ebx + 0x30], eax
movzx eax, al
add eax, dword [ebx + 0x34]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 0x34], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x53f020]
mov eax, esi
xor eax, 1
mov dword [ebx + 0x38], edx
imul eax, esi
shr eax, 8
xor al, byte [ebp - 0x5b9]
mov byte [ebp + edi - 0x30], al
inc edi
cmp edi, 0xc
jl 0x41f221
mov eax, dword [ebx]
mov edi, dword [ebp + 0x14]
test eax, eax
je 0x41f2b4
cmp edi, 4
je 0x41f2b4
push 0xc
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
call fcn.0041d860
add dword [ebx + 0x18], 0xc
mov eax, dword [ebx]
xor esi, esi
test eax, eax
je 0x41f2c5
cmp edi, 4
je 0x41f2c5
mov byte [ebx + 0x2d], 1
jmp 0x41f2d2
mov byte [ebx + 0x2d], 0
cmp edi, 4
je 0x41f3d1
mov eax, dword [ebp - 0x5d8]
cmp eax, 8
jne 0x41f2f2
lea eax, [ebp - 0x5b8]
mov ecx, ebx
push eax
call fcn.0041e030
mov esi, eax
jmp 0x41f3d7
test eax, eax
jne 0x41f3d7
mov dword [ebp - 0x5c4], eax
lea edi, [ebx + 0x94]
mov ecx, dword [ebx + 0x84]
mov edx, 0x4000
test ecx, ecx
je 0x41f352
mov eax, dword [ebx + 0x8c]
mov esi, dword [ebx + 0x88]
cmp eax, esi
jae 0x41f3be
sub esi, eax
cmp esi, edx
cmova esi, edx
add eax, ecx
push esi
push eax
push edi
call fcn.004ec850
add dword [ebx + 0x8c], esi
add dword [ebx + 0x74], esi
push esi
push edi
push dword [ebx + 0x78]
call fcn.0041d110
add esp, 0x18
jmp 0x41f389
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x41f3b7
push 0
lea ecx, [ebp - 0x5d0]
push ecx
push 0x4000
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41f3be
mov esi, dword [ebp - 0x5d0]
add dword [ebx + 0x74], esi
push esi
push edi
push dword [ebx + 0x78]
call fcn.0041d110
add esp, 0xc
mov dword [ebx + 0x78], eax
test esi, esi
je 0x41f3be
cmp esi, 0xffffffff
je 0x41f3be
push esi
push edi
mov ecx, ebx
call fcn.0041d860
cmp eax, esi
jne 0x41f3ad
add dword [ebp - 0x5c4], esi
jmp 0x41f306
mov edi, dword [ebp + 0x14]
mov esi, 0x60000
jmp 0x41f3d7
mov dword [ebx + 0x14], 0x1000000
mov eax, dword [ebp - 0x5c4]
xor esi, esi
mov edi, dword [ebp + 0x14]
mov dword [ebx + 0x90], eax
jmp 0x41f3d7
mov dword [ebx + 0x90], esi
cmp byte [ebx + 0x80], 0
mov byte [ebx + 0x2d], 0
je 0x41f3f2
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x41f3f2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x90]
add dword [ebx + 0x18], ecx
mov eax, dword [ebx + 0x14]
mov edx, dword [ebx + 0x74]
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x70], edx
test eax, eax
jne 0x41f7a4
test esi, esi
jne 0x41f107
add ecx, dword [ebp - 0x5dc]
cmp dword [ebp - 0x5a8], ecx
mov eax, dword [ebx + 0x78]
sete byte [ebp - 0x5b9]
mov dword [ebp - 0x5ac], eax
cmp byte [ebx + 0x1c], 0
mov dword [ebp - 0x5a8], ecx
mov dword [ebp - 0x5a4], edx
je 0x41f4e4
cmp dword [ebx], esi
je 0x41f45a
cmp edi, 4
jne 0x41f4e4
mov eax, dword [ebp - 0x5cc]
mov word [ebp - 0x5b2], ax
mov ax, word [ebp - 0x5b4]
test al, 1
jne 0x41f481
mov ecx, 0xfff7
and ax, cx
mov word [ebp - 0x5b4], ax
mov word [ebp - 0x58c], ax
mov ecx, ebx
mov eax, dword [ebp - 0x584]
sub eax, dword [ebx + 0x10]
push eax
call fcn.0041d9b0
test al, al
je 0x41f4cc
push ebx
lea eax, [ebp - 0x5b8]
push 0x41d840
push eax
call fcn.0041c8a0
add esp, 0xc
test eax, eax
jne 0x41f107
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.0041d9b0
test al, al
jne 0x41f6e6
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x5cc]
cmp word [ebp - 0x5b2], ax
jne 0x41f787
cmp dword [ebp - 0x5d8], 0
jne 0x41f50d
cmp byte [ebp - 0x5b9], 0
je 0x41f787
push 1
lea eax, [ebp - 0x5ba]
mov byte [ebp - 0x5ba], 0x50
push eax
mov ecx, ebx
call fcn.0041d860
push 1
lea eax, [ebp - 0x5ba]
mov byte [ebp - 0x5ba], 0x4b
push eax
mov ecx, ebx
call fcn.0041d860
push 1
lea eax, [ebp - 0x5bb]
mov byte [ebp - 0x5bb], 7
push eax
mov ecx, ebx
call fcn.0041d860
push 1
lea eax, [ebp - 0x5bb]
mov byte [ebp - 0x5bb], 8
push eax
mov ecx, ebx
call fcn.0041d860
mov al, byte [ebp - 0x5ac]
mov ecx, ebx
mov byte [ebp - 0x5bc], al
lea eax, [ebp - 0x5bc]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5ac]
mov ecx, ebx
shr eax, 8
mov byte [ebp - 0x5bc], al
lea eax, [ebp - 0x5bc]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5ac]
mov ecx, ebx
shr eax, 0x10
mov byte [ebp - 0x5bd], al
lea eax, [ebp - 0x5bd]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5ac]
mov ecx, ebx
shr eax, 0x18
mov byte [ebp - 0x5bd], al
lea eax, [ebp - 0x5bd]
push 1
push eax
call fcn.0041d860
mov al, byte [ebp - 0x5a8]
mov ecx, ebx
mov byte [ebp - 0x5be], al
lea eax, [ebp - 0x5be]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a8]
mov ecx, ebx
shr eax, 8
mov byte [ebp - 0x5be], al
lea eax, [ebp - 0x5be]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a8]
mov ecx, ebx
shr eax, 0x10
mov byte [ebp - 0x5c9], al
lea eax, [ebp - 0x5c9]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a8]
shr eax, 0x18
mov byte [ebp - 0x5c9], al
push 1
lea eax, [ebp - 0x5c9]
mov ecx, ebx
push eax
call fcn.0041d860
mov al, byte [ebp - 0x5a4]
mov ecx, ebx
mov byte [ebp - 0x5c1], al
lea eax, [ebp - 0x5c1]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a4]
mov ecx, ebx
shr eax, 8
mov byte [ebp - 0x5c1], al
lea eax, [ebp - 0x5c1]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a4]
mov ecx, ebx
shr eax, 0x10
mov byte [ebp - 0x5b9], al
lea eax, [ebp - 0x5b9]
push 1
push eax
call fcn.0041d860
mov eax, dword [ebp - 0x5a4]
mov ecx, ebx
shr eax, 0x18
mov byte [ebp - 0x5b9], al
lea eax, [ebp - 0x5b9]
push 1
push eax
call fcn.0041d860
mov ax, word [ebp - 0x58c]
add dword [ebx + 0x18], 0x10
mov word [ebp - 0x5b4], ax
mov eax, dword [ebx + 0x14]
test eax, eax
jne 0x41f7a4
push dword [ebp - 0x598]
call fcn.00460bdd
push dword [ebp - 0x598]
mov esi, eax
push dword [ebp - 0x478]
push esi
call fcn.004ec850
push 0x360
mov dword [ebp - 0x478], esi
call fcn.00460b31
mov edx, eax
lea esi, [ebp - 0x5b8]
mov ecx, 0xd8
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x44]
add esp, 0x14
test ecx, ecx
jne 0x41f753
pop esi
pop edi
mov dword [ebx + 0x44], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ecx + 0x35c]
test eax, eax
je 0x41f76c
nop dword [eax]
mov ecx, eax
mov eax, dword [ecx + 0x35c]
test eax, eax
jne 0x41f760
pop esi
pop edi
mov dword [ecx + 0x35c], edx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
pop esi
pop edi
mov eax, 0x4000000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x10000
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00460b6f
mov esp, ebp
pop ebp
ret 0x10