Function at 0x464c00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e6646
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xd0]
xor ebx, ebx
cmp edi, ebx
je 0x464c3a
cmp word [edi], bx
jne 0x464c3a
xor edi, edi
mov dword [esp + 0xd0], edi
mov esi, dword [esp + 0xd4]
mov eax, esi
and eax, 0x10000
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xdc]
cmp eax, ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
je 0x464c7b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
lea ecx, [esp + 0x30]
call fcn.00446550
mov eax, esi
and eax, 0x80000000
xor ecx, ecx
or eax, ecx
mov dword [esp + 0xc0], ebx
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x90], ebx
mov dword [esp + 0x94], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
je 0x464db2
cmp edi, ebx
mov dword [esp + 0x50], 1
je 0x464db8
lea eax, [esp + 0xd0]
push eax
mov dword [esp + 0xa4], edi
call fcn.004226c4
mov eax, dword [esp + 0xd4]
add esp, 4
cmp word [eax], bx
je 0x464cff
mov word [eax], bx
add eax, 2
mov dword [esp + 0xd0], eax
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.00449970
add esp, 8
test eax, eax
jle 0x464d2b
lea eax, [esp + 0xd0]
push eax
call fcn.0043f2e0
add esp, 4
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xd4]
push edx
call fcn.00449970
add esp, 8
cmp edi, ebx
je 0x464db8
cmp word [edi], bx
je 0x464db8
mov esi, dword [esp + 0x38]
push 0xd
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x70], ebx
call fcn.0042723f
mov edi, eax
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp word [eax], bx
je 0x464dab
mov edx, dword [esp + 0x34]
dec edx
cmp esi, edx
mov ebp, eax
jl 0x464d9f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x34], eax
shl eax, 2
push ecx
call fcn.00445f60
add esp, 4
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x30]
mov dword [edx + esi*4], ebp
inc esi
mov dword [esp + 0x38], esi
cmp word [edi], bx
jne 0x464d50
jmp 0x464dbc
mov dword [esp + 0x50], ebx
jmp 0x464d43
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
mov dword [esp + 0xb4], eax
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x50]
xor eax, eax
or ecx, eax
mov byte [esp + 0xc0], 1
je 0x464dec
mov eax, 0x40000000
jmp 0x464dee
xor eax, eax
mov edx, dword [esp + 0xc8]
push ebx
push 0x80
push 3
push ebx
push 7
or eax, 0x80000000
push eax
push edx
lea ecx, [esp + 0x30]
call fcn.004167bc
mov esi, dword [esp + 0x14]
cmp esi, ebx
jne 0x464e36
cmp edi, ebx
je 0x465c70
mov eax, dword [0x51927c]
add edi, 0xfffffff8
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x465c70
push 0x1c0002
call fcn.00445f00
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
je 0x464e51
mov word [ebp], bx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push ebp
push esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x200
jb 0x465c04
cmp dword [ebp + 0x1b4], 0x46424246
jne 0x465c04
cmp word [ebp + 0x1fe], 0xaa55
jne 0x465c04
movzx esi, word [ebp + 0x1b2]
inc esi
mov eax, esi
shl eax, 9
cdq
push 0
mov ebx, edx
mov edi, eax
push ebx
push edi
lea ecx, [esp + 0x20]
call fcn.0041d1a8
cmp edi, eax
jne 0x465c04
cmp ebx, edx
jne 0x465c04
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x200
push ebp
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x200
jb 0x465c04
movzx eax, word [ebp + 0xa]
mov ecx, dword [ebp + 0xc]
cdq
mov edi, eax
movzx eax, word [ebp]
mov dword [esp + 0x5c], ecx
xor ecx, ecx
mov ebx, edx
add edi, 8
adc ebx, ecx
add eax, esi
cdq
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xd4]
push ecx
mov dword [esp + 0x80], edx
movzx edx, word [ebp + 8]
mov esi, eax
push ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], ecx
and eax, 0x60000
mov byte [esp + 0x1b], cl
and esi, 0x80000
push 0x8600
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 8
mov dword [esp + 0x70], edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x90], eax
call fcn.0041d1a8
cmp eax, 0x8600
jne 0x46500d
test edx, edx
jne 0x46500d
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
push 0x200
push ebp
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46500d
cmp dword [esp + 0x18], 0x200
jne 0x46500d
mov al, byte [ebp + 0x1f8]
mov dl, byte [ebp + 0x1b4]
mov cl, al
and al, 0x1f
movzx eax, al
mov byte [esp + 0x13], dl
cdq
mov dword [esp + 0x48], eax
movzx eax, byte [esp + 0x13]
and cl, 0xe0
cmp eax, 0x46424246
mov dword [esp + 0x4c], edx
jne 0x46500d
test cl, cl
mov dword [esp + 0x24], 0x10000
jne 0x46500d
mov eax, dword [ebp + 0x1e8]
mov ecx, dword [ebp + 0x1ec]
mov edi, dword [ebp + 0x1f0]
mov ebx, dword [ebp + 0x1f4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
movzx edx, byte [esp + 0x13]
cmp edx, 0x46424246
je 0x4650c9
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x60], eax
jb 0x4650c9
ja 0x46503c
mov ecx, dword [esp + 0x48]
cmp dword [esp + 0x5c], ecx
jbe 0x4650c9
test esi, esi
je 0x4650ad
push 0
push 0x200
push ebx
push edi
call fcn.004b08b0
push 0
mov esi, eax
push edx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], edx
call fcn.0041d1a8
cmp esi, eax
jne 0x4650c9
cmp dword [esp + 0x74], edx
jne 0x4650c9
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x200
push ebp
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4650c9
cmp dword [esp + 0x18], 0x200
jne 0x4650c9
cmp byte [ebp], 0xeb
jne 0x4650c9
cmp word [ebp + 0x1fe], 0xaa55
jne 0x4650c9
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x4c]
sub eax, esi
sbb ecx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov esi, dword [esp + 0x64]
lea ecx, [esi + esi*4]
shl ecx, 9
add ecx, 0xc64
push ecx
mov ecx, dword [esp + 0xd0]
call fcn.004462b0
mov eax, dword [esp + 0xcc]
mov ecx, dword [eax]
lea edx, [esi + esi*4]
shl edx, 0xa
lea eax, [edx + ecx + 0x200]
and eax, 0xfffffe00
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x7c]
test eax, eax
jl 0x46512d
jg 0x465116
cmp dword [esp + 0x78], 0x44
jbe 0x46512d
mov edx, esi
shl edx, 0xa
push edx
lea ecx, [esp + 0x20]
call fcn.004462b0
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
push 0
push 0x200
push edx
lea ecx, [eax + esi]
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x38], ebp
call fcn.004b08b0
push 0
mov esi, eax
push edx
push esi
lea ecx, [esp + 0x20]
mov dword [esp + 0x80], edx
call fcn.0041d1a8
cmp esi, eax
jne 0x4658dd
cmp dword [esp + 0x74], edx
jne 0x4658dd
mov eax, dword [esp + 0xcc]
mov esi, dword [eax]
mov eax, dword [esp + 0xd4]
and eax, 0x60000
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x5c], esi
je 0x46519c
mov dword [esp + 0x80], ecx
mov eax, dword [esp + 0x84]
test eax, eax
je 0x46524c
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x46524c
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
ja 0x4651cc
mov edx, dword [esp + 0x40]
test edx, edx
jbe 0x46520c
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x200
push ecx
mov ecx, dword [esp + 0x64]
push ecx
call fcn.004b08b0
push edx
push eax
mov eax, dword [esp + 0x44]
push ebx
push edi
push str._ueext_
or eax, 0xff00
push eax
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
lea esi, [esi + eax*2]
mov eax, dword [esp + 0xd4]
and eax, 0x40000
xor ecx, ecx
or eax, ecx
mov dword [esp + 0x5c], esi
mov word [esi], 0
je 0x46524c
lea ecx, [esp + 0x1c]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.004167b7
lea ecx, [esp + 0x30]
call fcn.0043f290
xor eax, eax
jmp 0x465c73
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x48]
mov ebx, eax
jge 0x4652d8
lea esp, [esp]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push 0x200
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x200
jne 0x4658dd
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x20]
mov edi, eax
add eax, 0x1fe
mov ecx, 0x80
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x2c]
rep movsd dword es:[edi], dword [esi]
mov al, byte [eax]
test al, al
je 0x4652d8
mov ecx, dword [esp + 0x28]
movzx edx, al
mov eax, dword [esp + 0x2c]
lea eax, [edx + eax + 2]
cmp eax, ecx
ja 0x4652cf
mov dword [esp + 0x2c], eax
jmp 0x4652b0
mov eax, dword [esp + 0x48]
inc ebx
cmp ebx, eax
jl 0x465260
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], 0xfde9
mov dword [esp + 0x28], 8
mov edx, dword [esp + 0x40]
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x48], edx
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jae 0x4659c2
movzx ax, byte [ecx]
mov dword [esp + 0x48], ecx
lea esi, [ecx + 0xe]
mov ebx, ecx
add eax, 2
movzx eax, ax
add ecx, eax
lea edi, [eax - 0xe]
mov al, byte [esp + 0xd4]
test al, al
mov dword [esp + 0x2c], ecx
je 0x46533d
test byte [ebx + 1], al
je 0x465301
mov eax, dword [esp + 0x20]
xor ebp, ebp
test edi, edi
mov word [eax], bp
jle 0x46539c
cmp byte [esi], 0
je 0x46539c
mov edx, dword [esp + 0x20]
mov cl, byte [edi + esi]
mov eax, dword [esp + 0x28]
push 0x800
push edx
push 0xffffffffffffffff
mov byte [esp + 0x4b], cl
movzx ecx, word [esp + 0x30]
push esi
push eax
push ecx
mov byte [edi + esi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dl, byte [esp + 0x3f]
movzx ebp, al
test ebp, ebp
mov eax, dword [esp + 0x20]
mov byte [edi + esi], dl
mov word [eax + ebp*2], 0
jg 0x46539c
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4655e2
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4653e4
xor esi, esi
test eax, eax
jle 0x465301
mov edi, dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
jmp 0x4653c0
mov ecx, dword [esp + 0xb4]
mov edx, dword [ecx + esi*4]
mov eax, dword [esp + 0x20]
push edx
push eax
call edi
test eax, eax
jne 0x4653e4
mov eax, dword [esp + 0x38]
inc esi
cmp esi, eax
jl 0x4653c0
jmp 0x465301
mov eax, dword [esp + 0x80]
test eax, eax
jne 0x4655f5
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x46540a
mov eax, dword [esp + 0x58]
test eax, eax
je 0x465509
mov eax, dword [ebx + 6]
cmp eax, 0x8000
jb 0x465301
test eax, 0x1ff
jne 0x465301
test byte [ebx + 1], 0x7c
je 0x465438
mov eax, dword [esp + 0x84]
test eax, eax
jne 0x465509
cmp ebp, 4
jle 0x465459
mov ecx, dword [esp + 0x20]
lea edx, [ecx + ebp*2 - 0xa]
push edx
push str..iso
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x465509
mov eax, dword [ebx + 2]
mov ecx, 0x200
mul ecx
push 0
mov edi, edx
mov esi, eax
lea edx, [esp + 0x6c]
push edx
or eax, 0xffffffff
push edi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x20]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp esi, dword [esp + 0x68]
jne 0x465301
cmp edi, dword [esp + 0x6c]
jne 0x465301
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
add eax, 0x400
push eax
push edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x465301
cmp dword [esp + 0x18], 0x200
jne 0x465301
mov eax, dword [esp + 0x20]
mov cl, byte [eax + 0x400]
add eax, 0x400
cmp cl, 0xeb
jne 0x465301
mov eax, dword [esp + 0x20]
add eax, 0x400
cmp word [eax + 0x1fe], 0xaa55
jne 0x465301
mov eax, dword [ebx + 0xa]
xor ecx, ecx
push 0
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.004b08b0
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x74], edx
xor edx, edx
mov dword [esp + 0xa6], edx
mov dword [esp + 0x70], eax
mov dword [esp + 0xaa], edx
xor eax, eax
or ecx, eax
mov dword [esp + 0xae], edx
mov word [esp + 0xa4], 0
mov word [esp + 0xb2], dx
mov byte [esp + 0x13], 1
jne 0x4659dc
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx ecx, word [esp + 0xb0]
movzx edx, word [esp + 0xae]
movzx eax, word [esp + 0xac]
push ecx
movzx ecx, word [esp + 0xae]
mov esi, dword [esp + 0x60]
push edx
movzx edx, word [esp + 0xae]
push eax
movzx eax, word [esp + 0xb0]
push ecx
mov ecx, dword [ebx + 6]
push edx
mov edx, dword [ebx + 2]
push eax
mov eax, dword [esp + 0x38]
push ecx
movzx ecx, byte [ebx + 1]
push edx
push eax
push ecx
push str.0x_02X___s__0x_lX__lu__u__02u__02u__02u__02u__02u_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esi + eax*2]
add esp, 0x30
mov dword [esp + 0x5c], edx
jmp 0x465301
mov ebp, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jmp 0x4652f0
mov eax, dword [ebx + 2]
mov ecx, 0x200
mul ecx
mov ecx, dword [ebx + 6]
mov edi, eax
mov al, byte [ebx + 1]
and al, 1
neg al
mov dword [esp + 0x54], edx
sbb eax, eax
and eax, 2
add eax, 0x1fe
test ecx, ecx
mov dword [esp + 0x58], eax
ja 0x46566b
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x46563e
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46564e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465664
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
xor eax, eax
jmp 0x465c73
mov ebp, dword [esp + 0x9c]
xor edx, edx
cmp ebp, edx
jl 0x46568b
jg 0x465685
mov esi, dword [esp + 0x98]
cmp esi, ecx
jbe 0x465692
mov esi, ecx
mov ebp, edx
jmp 0x465692
mov esi, dword [esp + 0x98]
sub ecx, esi
xor edx, edx
cmp edx, 0xf
mov dword [esp + 0x24], ecx
jb 0x4656f4
ja 0x4656a9
cmp ecx, 0xfffffde0
jb 0x4656f4
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4656c6
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4656d6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c70
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
jmp 0x465c6e
cdq
push edx
push eax
push ebp
push esi
call fcn.004b0800
mov ecx, eax
shl eax, 9
cdq
add edi, eax
adc dword [esp + 0x54], edx
mov eax, ecx
imul eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x14]
cdq
sub esi, eax
sbb ebp, edx
mov ebp, dword [esp + 0x54]
or eax, 0xffffffff
push 0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
lea eax, [esp + 0x6c]
push eax
push ebp
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
cmp edi, dword [esp + 0x68]
jne 0x465745
cmp ebp, dword [esp + 0x6c]
je 0x465760
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x465c4a
add eax, 0xfffffff8
push eax
jmp 0x465c3f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xcc]
mov edx, dword [ecx]
lea edi, [esi + eax + 0x20f]
and edi, 0xfffffe00
lea ebp, [esi + eax + 0x1ff]
add edi, 0x200
lea eax, [edi + 1]
push edx
mov dword [esp + 0x5c], esi
and ebp, 0xfffffe00
call fcn.00445f60
mov ecx, dword [esp + 0xd0]
add esp, 4
test eax, eax
mov dword [ecx], eax
je 0x4657ae
mov byte [eax + edi], 0
mov ecx, dword [esp + 0xcc]
mov eax, dword [ecx]
test eax, eax
mov dword [esp + 0x28], eax
jne 0x46580a
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4657dc
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4657ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c70
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
jmp 0x465c6e
add eax, 0x200
and eax, 0xfffffe00
lea edi, [eax + 0x200]
mov dword [esp + 0x40], eax
mov dword [edi], 0
test byte [ebx + 1], 0x3d
je 0x4658fd
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push edx
push ebp
push edi
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4658dd
cmp dword [esp + 0x18], ebp
jb 0x4658dd
mov eax, dword [esp + 0xcc]
sub esi, dword [eax]
add esi, edi
mov dword [eax + 8], esi
mov ecx, dword [esp + 0xcc]
mov esi, dword [ecx + 8]
mov ebx, dword [ecx]
mov eax, dword [esp + 0x24]
add esi, ebx
add esi, eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
xor edx, edx
test eax, eax
mov dword [esi], edx
mov dword [esi + 4], edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x4658a9
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push edx
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4658bb
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c00
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
xor eax, eax
jmp 0x465c73
lea ecx, [esp + 0x1c]
call fcn.0043f290
lea ecx, [esp + 0x14]
call fcn.004167b7
lea ecx, [esp + 0x30]
call fcn.0043f290
jmp 0x465c70
test ebp, ebp
jle 0x465871
mov esi, dword [esp + 0x58]
lea esp, [esp]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push edx
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], 0x200
jne 0x46597c
mov eax, dword [esp + 0x40]
mov ecx, 0x1fe
sub ecx, esi
mov dword [esp + 0x18], ecx
add esi, eax
mov eax, dword [esp + 0x28]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add eax, dword [esp + 0x18]
sub ebp, 0x1fe
xor esi, esi
test ebp, ebp
mov dword [esp + 0x28], eax
jg 0x465910
jmp 0x46586a
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x465998
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
cmp edi, 0xffffffff
je 0x4659a4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c70
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
jmp 0x465c6e
mov ecx, dword [esp + 0x50]
xor edx, edx
or ecx, edx
je 0x465bbc
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x4659dc
mov dword [esp + 0x48], eax
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0x90]
mov ecx, dword [esp + 0x88]
mov dword [ebx + 2], eax
test byte [ebx + 1], 0x3c
mov dword [ebx + 6], ecx
jne 0x465a04
mov dl, byte [esp + 0xd4]
mov byte [ebx + 1], dl
mov al, byte [esp + 0x13]
test al, al
lea edi, [ebx + 0xc]
jne 0x465aa8
lea eax, [esp + 0x50]
xor esi, esi
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push esi
push 0x989680
push ecx
push edx
call fcn.004b08f0
mov ebp, dword [esp + 0x20]
movzx ecx, word [esp + 0x24]
push esi
push esi
push 0x100
push ebp
add eax, 0x49ef6f00
push 0xffffffffffffffff
mov dword [ebx + 0xa], eax
mov eax, dword [esp + 0xb4]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
jle 0x465a75
mov cl, byte [eax + ebp - 1]
test cl, cl
jne 0x465a75
dec eax
cmp eax, 0xf1
jle 0x465a81
mov eax, 0xf1
lea ecx, [eax + 1]
mov edx, ecx
shr ecx, 2
mov byte [eax + ebp], 0
mov esi, ebp
lea edi, [ebx + 0xe]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add al, 0xd
rep movsb byte es:[edi], byte [esi]
mov byte [ebx], al
movzx eax, al
lea edi, [eax + ebx + 2]
jmp 0x465aac
mov ebp, dword [esp + 0x20]
sub edi, dword [esp + 0x1c]
lea ecx, [edi - 1]
mov eax, 0x80808081
imul ecx
mov eax, dword [esp + 0x64]
add edx, ecx
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, eax
jge 0x465bbc
mov ecx, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
mov eax, esi
cdq
push 0
add eax, ecx
push 0x200
adc edx, ebx
push edx
push eax
call fcn.004b08b0
mov ebx, dword [esp + 0x14]
mov ecx, edx
or edx, 0xffffffff
push 0
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], edx
lea edx, [esp + 0x94]
push edx
push ecx
push eax
push ebx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, esi
shl eax, 9
sub edi, eax
cmp edi, 0x1fe
jle 0x465b3b
mov edi, 0x1fe
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x200
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
imul esi, esi, 0x1fe
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x88]
add esi, edx
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
or edx, 0xffffffff
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x8c]
push 0
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
lea edx, [esp + 0x74]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x200
push ebp
push ebx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x465bc0
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
je 0x465bdd
mov ecx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push ecx
call esi
cmp ebx, 0xffffffff
je 0x465be9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c00
mov edx, dword [0x51927c]
add eax, 0xfffffff8
push eax
push 0
push edx
call esi
xor eax, eax
jmp 0x465c73
mov esi, dword [esp + 0xcc]
mov eax, dword [esi]
push eax
mov eax, 0xca
call fcn.00445f60
add esp, 4
test eax, eax
mov dword [esi], eax
je 0x465c2a
mov word [eax + 0xc8], 0
test ebp, ebp
mov ecx, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov word [ecx], 0
je 0x465c4a
add ebp, 0xfffffff8
push ebp
mov edx, dword [0x51927c]
push 0
push edx
call esi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x465c5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x465c70
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
push 0
push eax
call esi
or eax, 0xffffffff
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret