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

Disassembly:
push ebp
lea ebp, [esp - 0x60]
sub esp, 0xf0
mov eax, dword [ebp + 0x70]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x42ed0b
cmp word [eax], bx
jne 0x42ed0b
mov dword [ebp + 0x70], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x100000
mov edi, ecx
mov dword [ebp], eax
mov eax, dword [ebp + 0x7c]
and edi, 0x10000
cmp eax, ebx
mov dword [ebp - 0x14], edi
mov byte [ebp + 0x46], cl
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
je 0x42ed3e
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x80]
call fcn.00435fd2
mov eax, dword [ebp + 0x74]
mov ecx, dword [ebp + 0x78]
and eax, 0x80000000
xor edx, edx
or eax, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x58], 1
jne 0x42ed70
mov dword [ebp - 0x58], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x60000
or eax, ebx
je 0x42ed83
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, ecx
and eax, 0x200000
or eax, ebx
mov byte [ebp + 0x43], 1
jne 0x42ed95
mov byte [ebp + 0x43], bl
mov eax, ecx
and eax, 0x400000
or eax, ebx
mov byte [ebp + 0x45], 1
jne 0x42eda7
mov byte [ebp + 0x45], bl
mov eax, ecx
and eax, 0x800000
or eax, ebx
mov byte [ebp + 0x47], 1
jne 0x42edb9
mov byte [ebp + 0x47], bl
mov eax, dword [ebp - 0x58]
or eax, edx
mov eax, dword [ebp + 0x70]
mov byte [ebp + 0x44], bl
je 0x42ee0a
cmp eax, ebx
je 0x42ee81
mov dword [ebp - 0x20], eax
push 0x125
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x74], ebx
call fcn.00416853
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x42ee30
mov byte [ebp + 0x44], 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.0043aabb
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
cmp eax, ebx
je 0x42ee81
cmp word [eax], bx
mov ecx, eax
je 0x42ee81
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0x5c
jne 0x42ee29
mov word [ecx - 2], 0x2f
mov eax, dword [ebp + 0x70]
cmp word [ecx], bx
jne 0x42ee15
jmp 0x42ee7c
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.0043aabb
test eax, eax
pop ecx
pop ecx
jg 0x42edf5
mov ebx, 0x80070057
jmp 0x42faf3
mov dword [ebp + 0x7c], eax
push 0xd
lea eax, [ebp + 0x4c]
push eax
lea eax, [ebp + 0x7c]
push eax
mov dword [ebp + 0x4c], ebx
call fcn.00416853
mov ecx, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [ecx], bx
je 0x42ee7c
push ecx
lea ecx, [ebp - 0x80]
call fcn.0040bc7d
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x42ee4d
mov ecx, dword [ebp - 0x78]
push esi
mov esi, ecx
neg esi
sbb esi, esi
and esi, dword [ebp - 0x80]
cmp ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], esi
jne 0x42eeb1
mov eax, dword [esi]
cmp word [eax], 0x3c
jne 0x42eeb1
cmp word [eax + 2], 0x3e
jne 0x42eeb1
cmp word [eax + 4], bx
mov byte [ebp + 0x57], cl
je 0x42eeb4
mov byte [ebp + 0x57], bl
cmp edi, ebx
jne 0x42eef0
xor edi, edi
cmp ecx, ebx
jle 0x42eef0
mov eax, dword [esi + edi*4]
push 6
push eax
push str._udext
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42eeea
inc eax
cmp dword [ebp - 4], eax
jne 0x42eedd
mov byte [ebp + 0x57], 1
or byte [ebp + 0x76], 2
mov dword [ebp], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x78], eax
inc edi
cmp edi, dword [ebp - 4]
jl 0x42eebe
mov ecx, dword [ebp - 0x58]
xor eax, eax
or ecx, eax
je 0x42ef14
cmp dword [ebp - 4], ebx
jl 0x42ef0a
cmp esi, ebx
je 0x42ef14
mov ecx, dword [esi]
cmp word [ecx], 0x3c
jne 0x42ef14
mov ebx, 0x80070057
jmp 0x42faf2
mov ecx, dword [ebp - 0x58]
or ecx, eax
mov dword [ebp + 0x58], ebx
je 0x42ef25
mov eax, 0x40000000
jmp 0x42ef27
xor eax, eax
push ebx
push 0x80
push 3
push ebx
push 7
or eax, 0x80000000
push eax
push dword [ebp + 0x68]
lea ecx, [ebp + 0x58]
call fcn.004045f9
cmp dword [ebp + 0x58], ebx
jne 0x42ef50
or ebx, 0xffffffff
jmp 0x42faea
push 0xe0000
lea ecx, [ebp - 0x10]
call fcn.00435d80
mov edi, dword [ebp - 0x10]
push ebx
lea eax, [ebp + 0x5c]
push eax
mov esi, 0x200
push esi
push edi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0x5c], esi
jb 0x42face
cmp dword [edi + 0x1b4], 0x46424246
jne 0x42face
cmp word [edi + 0x1fe], 0xaa55
jne 0x42face
movzx eax, word [edi + 0x1b2]
inc eax
mov dword [ebp + 0x7c], eax
shl eax, 9
cdq
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edx
call fcn.0043181b
add esp, 0x10
cmp dword [ebp + 4], eax
jne 0x42face
cmp dword [ebp + 8], edx
jne 0x42face
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push edi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0x5c], esi
jb 0x42face
movzx eax, word [edi + 0xa]
mov ecx, dword [edi + 0xc]
cdq
mov dword [ebp - 0x44], eax
push 8
mov dword [ebp + 4], ecx
pop ecx
add eax, ecx
mov dword [ebp + 0x30], eax
mov eax, edx
adc eax, ebx
mov dword [ebp + 0x34], eax
movzx eax, word [edi]
add eax, dword [ebp + 0x7c]
mov dword [ebp - 0x40], edx
cdq
mov dword [ebp - 0x30], eax
movzx eax, word [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x74]
and eax, 0x80000
push ebx
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x74]
push ebx
push 0x8600
push dword [ebp + 0x58]
and eax, 0x60000
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp + 0x7c], ebx
mov dword [ebp - 0x48], eax
call fcn.0043181b
add esp, 0x10
cmp eax, 0x8600
jne 0x42f0d8
cmp edx, ebx
jne 0x42f0d8
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push edi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42f0d8
cmp dword [ebp + 0x5c], esi
jne 0x42f0d8
mov al, byte [edi + 0x1f8]
mov cl, al
and al, 0x1f
movzx eax, al
cdq
and cl, 0xe0
cmp dword [edi + 0x1b4], 0x46424246
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
jne 0x42f0d8
cmp cl, bl
mov dword [ebp + 0x7c], 0x10000
jne 0x42f157
mov eax, dword [edi + 0x1f0]
mov dword [ebp + 0x30], eax
mov eax, dword [edi + 0x1f4]
mov dword [ebp + 0x34], eax
mov eax, dword [edi + 0x1e8]
mov dword [ebp + 0x24], eax
mov eax, dword [edi + 0x1ec]
jmp 0x42f154
xor eax, eax
cmp eax, dword [ebp + 0x3c]
jb 0x42f157
ja 0x42f0e9
mov eax, dword [ebp + 0x38]
cmp dword [ebp + 4], eax
jbe 0x42f157
cmp dword [ebp + 0x4c], ebx
je 0x42f157
push ebx
push esi
push dword [ebp + 0x34]
push dword [ebp + 0x30]
call fcn.0047fe80
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edx
call fcn.0043181b
add esp, 0x10
cmp dword [ebp + 0x1c], eax
jne 0x42f157
cmp dword [ebp + 0x20], edx
jne 0x42f157
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push edi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42f157
cmp dword [ebp + 0x5c], esi
jne 0x42f157
cmp byte [edi], 0xeb
jne 0x42f157
cmp word [edi + 0x1fe], 0xaa55
jne 0x42f157
mov eax, dword [ebp + 4]
sub eax, dword [ebp + 0x38]
push 0
mov dword [ebp + 0x24], eax
pop eax
sbb eax, dword [ebp + 0x3c]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x6c]
lea eax, [eax + eax*4]
shl eax, 9
add eax, 0xc64
push eax
call fcn.00435da9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0x6c]
mov ecx, dword [ecx]
lea eax, [eax + eax*4]
shl eax, 0xa
lea eax, [eax + ecx + 0x200]
and eax, 0xfffffe00
cmp dword [ebp - 0x2c], ebx
mov dword [ebp + 0x50], eax
jl 0x42f1aa
jg 0x42f198
cmp dword [ebp - 0x30], 0x44
jbe 0x42f1aa
mov eax, dword [ebp - 0xc]
shl eax, 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.00435da9
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
push ebx
push esi
push dword [ebp - 0x2c]
add ecx, eax
push eax
mov dword [ebp + 0x4c], ecx
mov dword [ebp + 0x48], edi
call fcn.0047fe80
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
call fcn.0043181b
add esp, 0x10
cmp dword [ebp + 0x38], eax
jne 0x42fadf
cmp dword [ebp + 0x3c], edx
jne 0x42fadf
cmp dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov dword [ebp + 0x2c], eax
je 0x42f1fb
cmp dword [ebp - 0x14], ebx
je 0x42f207
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x30], ebx
mov dword [ebp + 0x34], ebx
push ebx
push esi
xor eax, eax
push eax
push dword [ebp + 4]
call fcn.0047fe80
cmp dword [ebp - 0x48], ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
je 0x42f2af
cmp dword [ebp - 0x14], ebx
jne 0x42f2af
xor eax, eax
cmp dword [ebp + 0x28], ebx
ja 0x42f238
cmp dword [ebp + 0x24], ebx
jbe 0x42f272
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.0047fe80
push edx
push eax
push dword [ebp + 0x34]
mov eax, dword [ebp + 0x7c]
push dword [ebp + 0x30]
or eax, 0xff00
push str._udext_
push eax
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
cmp dword [ebp + 0x28], ebx
mov ecx, dword [ebp + 0x2c]
lea eax, [ecx + eax*2]
mov dword [ebp + 0x2c], eax
mov word [eax], bx
ja 0x42f288
cmp dword [ebp + 0x24], ebx
jbe 0x42f29f
or dword [ebp], 0xffffffff
push ebx
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.0047fe80
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
mov eax, dword [ebp + 0x74]
and eax, 0x40000
or eax, ebx
jne 0x42fae2
cmp byte [ebp + 0x57], bl
jne 0x42f311
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x7c], eax
jmp 0x42f30c
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x50]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0x5c], esi
jne 0x42fadf
push esi
push dword [ebp + 0x50]
push dword [ebp + 0x48]
call fcn.004102e0
add esp, 0xc
add dword [ebp + 0x48], 0x1fe
mov al, byte [edi]
cmp al, bl
je 0x42f311
movzx eax, al
lea eax, [eax + edi + 2]
cmp eax, dword [ebp + 0x48]
ja 0x42f306
mov edi, eax
jmp 0x42f2f0
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
cmp eax, dword [ebp + 0x4c]
jl 0x42f2bc
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
je 0x42f323
mov dword [ebp - 0x1c], ebx
mov dword [ebp + 0x4c], 0xfde9
mov dword [ebp - 0x3c], 8
cmp byte [ebp + 0x57], bl
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp + 0x48], eax
mov byte [ebp + 0x7b], bl
mov dword [ebp + 0x18], edi
mov dword [ebp - 8], ebx
je 0x42f34b
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x18]
jae 0x42f80b
movzx ax, byte [ecx]
mov dword [ebp + 0x18], ecx
lea edx, [ecx + 0xe]
inc eax
inc eax
movzx eax, ax
lea edi, [eax - 0xe]
mov dword [ebp + 0x28], edi
mov edi, ecx
add ecx, eax
cmp ebx, dword [ebp - 0x40]
mov al, byte [edi + 1]
mov dword [ebp + 0x14], edi
mov edi, dword [edi + 2]
mov dword [ebp - 0x34], ecx
mov byte [ebp + 0x7f], al
jb 0x42f38f
ja 0x42f38b
cmp edi, dword [ebp - 0x44]
jb 0x42f38f
or byte [ebp + 0x7f], 1
mov al, byte [ebp + 0x46]
cmp al, bl
je 0x42f39b
test byte [ebp + 0x7f], al
je 0x42f34b
mov edi, dword [ebp + 0x28]
cmp edi, ebx
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], ebx
mov word [eax], bx
jle 0x42f3f0
cmp byte [edx], bl
je 0x42f3f0
push 0x800
push dword [ebp + 0x50]
add edi, edx
mov al, byte [edi]
push 0xffffffffffffffff
push edx
push dword [ebp - 0x3c]
mov byte [ebp + 0xf], al
movzx eax, word [ebp + 0x4c]
push eax
mov byte [edi], bl
call dword [0x4acb54]
mov cl, byte [ebp + 0xf]
movzx eax, al
cmp eax, ebx
mov byte [edi], cl
mov ecx, dword [ebp + 0x50]
mov dword [ebp - 0x38], eax
mov word [ecx + eax*2], bx
jg 0x42f3f0
cmp dword [ebp - 0x3c], ebx
jne 0x42f64b
cmp byte [ebp + 0x45], bl
je 0x42f40d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 6]
test ax, 0x1ff
jne 0x42f34b
cmp eax, ebx
je 0x42f34b
cmp byte [ebp + 0x43], bl
je 0x42f418
test byte [ebp + 0x7f], 0x7c
jne 0x42f446
cmp dword [ebp - 4], ebx
je 0x42f446
xor edi, edi
cmp dword [ebp - 4], ebx
jle 0x42f34b
mov eax, dword [ebp + 0x10]
push dword [eax + edi*4]
push dword [ebp + 0x50]
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x42f446
inc edi
cmp edi, dword [ebp - 4]
jl 0x42f428
jmp 0x42f34b
mov edi, dword [ebp + 0x14]
mov eax, dword [edi + 6]
xor ecx, ecx
test byte [ebp + 0x7f], 0x80
mov dword [ebp + 0x28], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], ecx
je 0x42f471
push ebx
push esi
push ecx
push eax
call fcn.0047fe80
mov ecx, edx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x20], ecx
cmp dword [ebp - 0x14], ebx
jne 0x42f659
cmp dword [ebp - 0x48], ebx
je 0x42f54e
cmp eax, 0x8000
jb 0x42f34b
test ax, 0x1ff
jne 0x42f34b
test byte [ebp + 0x7f], 0x7c
jne 0x42f54e
cmp dword [ebp - 0x38], 4
jle 0x42f4c6
mov ecx, dword [ebp - 0x38]
mov eax, dword [ebp + 0x50]
lea eax, [eax + ecx*2 - 0xa]
push eax
push str..iso
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x42f54e
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
mov ecx, esi
mul ecx
push ebx
push edx
mov edi, eax
push edi
push dword [ebp + 0x58]
mov dword [ebp - 0x8c], edx
call fcn.0043181b
add esp, 0x10
cmp edi, eax
jne 0x42f34b
cmp dword [ebp - 0x8c], edx
jne 0x42f34b
push ebx
lea eax, [ebp + 0x5c]
push eax
mov eax, dword [ebp + 0x50]
push esi
add eax, 0x400
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42f34b
cmp dword [ebp + 0x5c], esi
jne 0x42f34b
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp byte [eax], 0xeb
jne 0x42f34b
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp word [eax + 0x1fe], 0xaa55
jne 0x42f34b
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xa]
xor ecx, ecx
push ebx
add eax, 0xb6109100
push 0x989680
adc ecx, 2
push ecx
push eax
call fcn.0047fe80
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
xor eax, eax
mov word [ebp - 0x70], bx
lea edi, [ebp - 0x6e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
or ecx, eax
mov dword [ebp - 0x84], edx
mov byte [ebp + 0x7b], 1
jne 0x42f80b
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.DLL_FileTimeToSystemTime]
inc dword [ebp - 8]
cmp dword [ebp], 0xffffffff
jne 0x42f5d4
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp + 0x30], eax
jne 0x42f5fc
cmp dword [ebp + 0x34], ebx
jne 0x42f5fc
mov eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x1c]
jne 0x42f5d4
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x3c], eax
je 0x42f34b
cmp dword [ebp], ebx
jle 0x42f5fc
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp - 0x44], eax
jne 0x42f5fc
cmp dword [ebp - 0x40], ebx
jne 0x42f5fc
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x38], eax
jne 0x42f5fc
mov eax, dword [ebp + 0x3c]
cmp eax, dword [ebp + 0x20]
jne 0x42f5fc
mov dword [ebp], ebx
movzx eax, word [ebp - 0x64]
push eax
movzx eax, word [ebp - 0x66]
push eax
movzx eax, word [ebp - 0x68]
push eax
movzx eax, word [ebp - 0x6a]
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
mov edi, dword [ebp + 0x2c]
push eax
push dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x1c]
push dword [eax + 2]
movzx eax, byte [ebp + 0x7f]
push dword [ebp + 0x50]
push eax
push str.0x_02X___s__0x_lX__I64u__u__02u__02u__02u__02u__02u_r_n
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [edi + eax*2]
add esp, 0x34
mov dword [ebp + 0x2c], eax
jmp 0x42f34b
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ebx
mov dword [ebp + 0x4c], ebx
jmp 0x42f331
mov eax, dword [edi + 2]
mov edx, esi
mul edx
mov dword [ebp + 0x30], eax
mov al, byte [ebp + 0x7f]
and al, 1
neg al
mov dword [ebp + 0x34], edx
sbb eax, eax
and eax, 2
add eax, 0x1fe
cmp ecx, ebx
mov dword [ebp + 0x78], eax
jg 0x42f68d
jl 0x42fae2
cmp dword [ebp + 0x1c], ebx
jbe 0x42fae2
cmp dword [ebp - 0x24], ecx
jl 0x42f6a4
jg 0x42f69c
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp + 0x1c]
jbe 0x42f6a7
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ecx
jmp 0x42f6a7
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp + 0x1c]
sub eax, edi
sbb ecx, dword [ebp - 0x24]
mov dword [ebp + 4], eax
cmp ecx, 0xf
jb 0x42f6c8
ja 0x42fadf
cmp eax, 0xfffffde0
jae 0x42fadf
mov eax, dword [ebp + 0x78]
cdq
push edx
push eax
push dword [ebp - 0x24]
push edi
call fcn.0047fdd0
mov dword [ebp + 0x10], eax
shl eax, 9
cdq
add dword [ebp + 0x30], eax
push ebx
adc dword [ebp + 0x34], edx
push dword [ebp + 0x34]
push dword [ebp + 0x30]
push dword [ebp + 0x58]
call fcn.0043181b
add esp, 0x10
cmp dword [ebp + 0x30], eax
jne 0x42fadf
cmp dword [ebp + 0x34], edx
jne 0x42fadf
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp + 0x78]
sub edi, eax
mov eax, dword [ebp + 4]
add eax, edi
mov dword [ebp + 0x78], edi
lea edi, [eax + 0x1ff]
mov ecx, 0xfffffe00
add eax, 0x20f
and eax, ecx
add eax, esi
and edi, ecx
mov ecx, dword [ebp + 0x6c]
push eax
call fcn.00435c7d
cmp eax, ebx
mov dword [ebp + 0x48], eax
je 0x42fadf
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
add eax, esi
and eax, 0xfffffe00
mov dword [ebp + 0x4c], eax
add eax, 0x200
test byte [ebp + 0x7f], 0x3d
mov dword [ebp + 0x10], eax
mov dword [eax], ebx
je 0x42f7e6
mov esi, dword [ebp + 0x10]
push ebx
lea eax, [ebp + 0x5c]
push eax
push edi
push esi
push dword [ebp + 0x58]
mov dword [ebp + 0x5c], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x42fadf
cmp dword [ebp + 0x5c], edi
jb 0x42fadf
mov eax, dword [ebp + 0x6c]
sub esi, dword [eax]
add esi, dword [ebp + 0x78]
mov dword [eax + 8], esi
jmp 0x42f7ea
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x4c]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp + 0x5c], esi
jne 0x42fadf
mov ecx, dword [ebp + 0x78]
mov eax, 0x1fe
sub eax, ecx
push eax
mov dword [ebp + 0x5c], eax
mov eax, dword [ebp + 0x4c]
add eax, ecx
push eax
push dword [ebp + 0x48]
call fcn.004102e0
mov eax, dword [ebp + 0x5c]
add dword [ebp + 0x48], eax
add esp, 0xc
mov dword [ebp + 0x78], ebx
sub edi, 0x1fe
cmp edi, ebx
jg 0x42f79a
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 8]
mov ecx, dword [ebp + 4]
add edx, dword [eax]
push 0x10
add edx, ecx
push ebx
push edx
mov dword [eax + 4], ecx
call fcn.0047fd70
add esp, 0xc
jmp 0x42fae2
cmp byte [ebp + 0x47], bl
je 0x42f846
cmp dword [ebp - 8], ebx
jle 0x42f846
mov edi, dword [ebp + 0x2c]
sub edi, dword [ebp - 0x1c]
mov dword [ebp], ebx
inc edi
inc edi
sar edi, 1
cmp dword [ebp - 0x1c], ebx
je 0x42f83b
lea eax, [edi + edi]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x6c]
push dword [eax]
call fcn.00410296
add esp, 0xc
mov eax, dword [ebp + 0x2c]
neg edi
lea eax, [eax + edi*2]
mov dword [ebp + 0x2c], eax
cmp dword [ebp], ebx
jle 0x42f888
xor eax, eax
cmp eax, ebx
ja 0x42f856
cmp dword [ebp + 4], ebx
jbe 0x42f888
cmp dword [ebp - 0x14], ebx
jne 0x42f888
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x3c]
push dword [ebp + 0x38]
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push str._udext.norm_
push 0x2ff00
push str.0x_02X___s__0x_I64X__I64u__u__02u__02u__02u__02u__02u_r_n
push dword [ebp + 0x2c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x38
mov eax, dword [ebp - 0x58]
xor ecx, ecx
or eax, ecx
je 0x42fae2
mov cl, byte [ebp + 0x44]
xor eax, eax
cmp byte [ebp + 0x7b], bl
sete al
test cl, al
jne 0x42fae2
cmp byte [ebp + 0x7b], bl
jne 0x42f8b5
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x18], eax
jmp 0x42f8b8
mov eax, dword [ebp + 0x18]
cmp cl, bl
mov edi, dword [ebp - 0x18]
je 0x42f8f2
mov ecx, dword [ebp + 0x18]
movzx eax, byte [ecx]
inc eax
inc eax
mov edx, edi
sub edx, eax
mov dword [ebp + 0x78], edx
sub edx, ecx
inc edx
mov dword [ebp + 0x7c], eax
push edx
add eax, ecx
push eax
push ecx
call fcn.00410296
push dword [ebp + 0x7c]
push ebx
push dword [ebp + 0x78]
call fcn.0047fd70
add esp, 0x18
jmp 0x42f9ea
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
shrd ecx, edx, 9
mov dword [eax + 2], ecx
mov ecx, dword [ebp - 0x50]
shr edx, 9
test byte [eax + 1], 0xbc
mov dword [eax + 6], ecx
jne 0x42f914
mov cl, byte [ebp + 0x46]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x4c]
cmp ecx, 1
jb 0x42f92a
ja 0x42f923
cmp dword [ebp - 0x50], ebx
jb 0x42f92a
or byte [eax + 1], 0x80
mov ecx, dword [ebp - 0x4c]
test byte [eax + 1], 0x80
je 0x42f945
mov edx, dword [ebp - 0x50]
add edx, 0x1ff
adc ecx, ebx
shrd edx, ecx, 9
shr ecx, 9
mov dword [eax + 6], edx
cmp byte [ebp + 0x7b], bl
lea edi, [eax + 0xc]
jne 0x42f9ed
xor eax, eax
mov dword [ebp + 0x74], ebx
lea edi, [ebp + 0x78]
stosd dword es:[edi], eax
lea eax, [ebp + 0x74]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
push ebx
push 0x989680
push dword [ebp + 0x78]
push dword [ebp + 0x74]
call fcn.004805c0
mov ecx, dword [ebp + 0x18]
push ebx
push ebx
push 0x100
push dword [ebp + 0x50]
add eax, 0x49ef6f00
push 0xffffffffffffffff
mov dword [ecx + 0xa], eax
push dword [ebp - 0x20]
movzx eax, word [ebp + 0x4c]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
cmp eax, ebx
mov dword [ebp + 0x7c], eax
jle 0x42f9b1
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x7c]
cmp byte [ecx + eax - 1], bl
jne 0x42f9b1
dec dword [ebp + 0x7c]
mov eax, 0xf1
cmp dword [ebp + 0x7c], eax
jle 0x42f9be
mov dword [ebp + 0x7c], eax
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x18]
mov byte [eax + ecx], bl
inc eax
push eax
push ecx
lea eax, [edi + 0xe]
push eax
call fcn.004102e0
mov al, byte [ebp + 0x7c]
add esp, 0xc
add al, 0xd
mov byte [edi], al
movzx eax, al
lea edi, [eax + edi + 3]
mov byte [edi - 1], bl
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x48]
mov ecx, 0x1fe
cdq
idiv ecx
sub edi, dword [ebp + 0x48]
mov dword [ebp + 0x7c], eax
mov eax, edi
cdq
idiv ecx
cmp eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
jl 0x42fa15
mov ebx, 0x80070057
jmp 0x42fae2
cmp dword [ebp + 0x7c], eax
jg 0x42fae2
mov eax, dword [ebp + 0x7c]
mov ecx, dword [ebp + 0x48]
imul eax, eax, 0x1fe
add ecx, eax
sub edi, eax
mov dword [ebp + 0x78], edi
mov dword [ebp + 0x4c], ecx
mov edi, 0x1fe
mov eax, dword [ebp + 0x7c]
cdq
add eax, dword [ebp - 0x30]
push ebx
adc edx, dword [ebp - 0x2c]
push esi
push edx
push eax
call fcn.0047fe80
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edx
call fcn.0043181b
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp eax, edi
mov dword [ebp - 8], eax
jle 0x42fa6d
mov dword [ebp - 8], edi
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x50]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 8]
push dword [ebp + 0x4c]
push dword [ebp + 0x50]
call fcn.004102e0
push ebx
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp + 0x58]
call fcn.0043181b
add esp, 0x1c
push ebx
lea eax, [ebp + 0x5c]
push eax
push esi
push dword [ebp + 0x50]
mov dword [ebp + 0x5c], ebx
push dword [ebp + 0x58]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
sub dword [ebp + 0x78], edi
add dword [ebp + 0x4c], edi
cmp eax, dword [ebp + 0x10]
jle 0x42fa39
jmp 0x42fae2
mov esi, dword [ebp + 0x6c]
push 0x64
mov ecx, esi
call fcn.00435da9
mov eax, dword [esi]
mov word [eax], bx
or ebx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043092f
lea ecx, [ebp + 0x58]
call fcn.00402b27
pop esi
lea ecx, [ebp - 0x80]
call fcn.0043092f
pop edi
mov eax, ebx
pop ebx
add ebp, 0x60
leave
ret