Function at 0x42cf56
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 0x42cf74
cmp word [eax], bx
jne 0x42cf74
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 0x42cfa7
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.00433e90
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 0x42cfd9
mov dword [ebp - 0x58], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x60000
or eax, ebx
je 0x42cfec
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, ecx
and eax, 0x200000
or eax, ebx
mov byte [ebp + 0x43], 1
jne 0x42cffe
mov byte [ebp + 0x43], bl
mov eax, ecx
and eax, 0x400000
or eax, ebx
mov byte [ebp + 0x45], 1
jne 0x42d010
mov byte [ebp + 0x45], bl
mov eax, ecx
and eax, 0x800000
or eax, ebx
mov byte [ebp + 0x47], 1
jne 0x42d022
mov byte [ebp + 0x47], bl
mov eax, dword [ebp - 0x58]
or eax, edx
mov eax, dword [ebp + 0x70]
mov byte [ebp + 0x44], bl
je 0x42d073
cmp eax, ebx
je 0x42d0ea
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.00414faa
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x42d099
mov byte [ebp + 0x44], 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004385d3
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
cmp eax, ebx
je 0x42d0ea
cmp word [eax], bx
mov ecx, eax
je 0x42d0ea
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0x5c
jne 0x42d092
mov word [ecx - 2], 0x2f
mov eax, dword [ebp + 0x70]
cmp word [ecx], bx
jne 0x42d07e
jmp 0x42d0e5
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004385d3
test eax, eax
pop ecx
pop ecx
jg 0x42d05e
mov ebx, 0x80070057
jmp 0x42dd5c
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.00414faa
mov ecx, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [ecx], bx
je 0x42d0e5
push ecx
lea ecx, [ebp - 0x80]
call fcn.0040b46a
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x42d0b6
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 0x42d11a
mov eax, dword [esi]
cmp word [eax], 0x3c
jne 0x42d11a
cmp word [eax + 2], 0x3e
jne 0x42d11a
cmp word [eax + 4], bx
mov byte [ebp + 0x57], cl
je 0x42d11d
mov byte [ebp + 0x57], bl
cmp edi, ebx
jne 0x42d159
xor edi, edi
cmp ecx, ebx
jle 0x42d159
mov eax, dword [esi + edi*4]
push 6
push eax
push str._udext
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42d153
inc eax
cmp dword [ebp - 4], eax
jne 0x42d146
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 0x42d127
mov ecx, dword [ebp - 0x58]
xor eax, eax
or ecx, eax
je 0x42d17d
cmp dword [ebp - 4], ebx
jl 0x42d173
cmp esi, ebx
je 0x42d17d
mov ecx, dword [esi]
cmp word [ecx], 0x3c
jne 0x42d17d
mov ebx, 0x80070057
jmp 0x42dd5b
mov ecx, dword [ebp - 0x58]
or ecx, eax
mov dword [ebp + 0x58], ebx
je 0x42d18e
mov eax, 0x40000000
jmp 0x42d190
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.004041e7
cmp dword [ebp + 0x58], ebx
jne 0x42d1b9
or ebx, 0xffffffff
jmp 0x42dd53
push 0xe0000
lea ecx, [ebp - 0x10]
call fcn.00433c42
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 0x42dd37
cmp dword [edi + 0x1b4], 0x46424246
jne 0x42dd37
cmp word [edi + 0x1fe], 0xaa55
jne 0x42dd37
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.0042fa51
add esp, 0x10
cmp dword [ebp + 4], eax
jne 0x42dd37
cmp dword [ebp + 8], edx
jne 0x42dd37
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 0x42dd37
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.0042fa51
add esp, 0x10
cmp eax, 0x8600
jne 0x42d341
cmp edx, ebx
jne 0x42d341
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 0x42d341
cmp dword [ebp + 0x5c], esi
jne 0x42d341
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 0x42d341
cmp cl, bl
mov dword [ebp + 0x7c], 0x10000
jne 0x42d3c0
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 0x42d3bd
xor eax, eax
cmp eax, dword [ebp + 0x3c]
jb 0x42d3c0
ja 0x42d352
mov eax, dword [ebp + 0x38]
cmp dword [ebp + 4], eax
jbe 0x42d3c0
cmp dword [ebp + 0x4c], ebx
je 0x42d3c0
push ebx
push esi
push dword [ebp + 0x34]
push dword [ebp + 0x30]
call fcn.0047b320
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edx
call fcn.0042fa51
add esp, 0x10
cmp dword [ebp + 0x1c], eax
jne 0x42d3c0
cmp dword [ebp + 0x20], edx
jne 0x42d3c0
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 0x42d3c0
cmp dword [ebp + 0x5c], esi
jne 0x42d3c0
cmp byte [edi], 0xeb
jne 0x42d3c0
cmp word [edi + 0x1fe], 0xaa55
jne 0x42d3c0
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.00433c6b
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 0x42d413
jg 0x42d401
cmp dword [ebp - 0x30], 0x44
jbe 0x42d413
mov eax, dword [ebp - 0xc]
shl eax, 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.00433c6b
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.0047b320
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
call fcn.0042fa51
add esp, 0x10
cmp dword [ebp + 0x38], eax
jne 0x42dd48
cmp dword [ebp + 0x3c], edx
jne 0x42dd48
cmp dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov dword [ebp + 0x2c], eax
je 0x42d464
cmp dword [ebp - 0x14], ebx
je 0x42d470
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.0047b320
cmp dword [ebp - 0x48], ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
je 0x42d518
cmp dword [ebp - 0x14], ebx
jne 0x42d518
xor eax, eax
cmp dword [ebp + 0x28], ebx
ja 0x42d4a1
cmp dword [ebp + 0x24], ebx
jbe 0x42d4db
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.0047b320
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 0x42d4f1
cmp dword [ebp + 0x24], ebx
jbe 0x42d508
or dword [ebp], 0xffffffff
push ebx
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.0047b320
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
mov eax, dword [ebp + 0x74]
and eax, 0x40000
or eax, ebx
jne 0x42dd4b
cmp byte [ebp + 0x57], bl
jne 0x42d57a
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x7c], eax
jmp 0x42d575
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 0x42dd48
push esi
push dword [ebp + 0x50]
push dword [ebp + 0x48]
call fcn.0047b530
add esp, 0xc
add dword [ebp + 0x48], 0x1fe
mov al, byte [edi]
cmp al, bl
je 0x42d57a
movzx eax, al
lea eax, [eax + edi + 2]
cmp eax, dword [ebp + 0x48]
ja 0x42d56f
mov edi, eax
jmp 0x42d559
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
cmp eax, dword [ebp + 0x4c]
jl 0x42d525
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
je 0x42d58c
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 0x42d5b4
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x18]
jae 0x42da74
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 0x42d5f8
ja 0x42d5f4
cmp edi, dword [ebp - 0x44]
jb 0x42d5f8
or byte [ebp + 0x7f], 1
mov al, byte [ebp + 0x46]
cmp al, bl
je 0x42d604
test byte [ebp + 0x7f], al
je 0x42d5b4
mov edi, dword [ebp + 0x28]
cmp edi, ebx
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], ebx
mov word [eax], bx
jle 0x42d659
cmp byte [edx], bl
je 0x42d659
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 [sym.imp.KERNEL32.dll_MultiByteToWideChar]
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 0x42d659
cmp dword [ebp - 0x3c], ebx
jne 0x42d8b4
cmp byte [ebp + 0x45], bl
je 0x42d676
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 6]
test ax, 0x1ff
jne 0x42d5b4
cmp eax, ebx
je 0x42d5b4
cmp byte [ebp + 0x43], bl
je 0x42d681
test byte [ebp + 0x7f], 0x7c
jne 0x42d6af
cmp dword [ebp - 4], ebx
je 0x42d6af
xor edi, edi
cmp dword [ebp - 4], ebx
jle 0x42d5b4
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 0x42d6af
inc edi
cmp edi, dword [ebp - 4]
jl 0x42d691
jmp 0x42d5b4
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 0x42d6da
push ebx
push esi
push ecx
push eax
call fcn.0047b320
mov ecx, edx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x20], ecx
cmp dword [ebp - 0x14], ebx
jne 0x42d8c2
cmp dword [ebp - 0x48], ebx
je 0x42d7b7
cmp eax, 0x8000
jb 0x42d5b4
test ax, 0x1ff
jne 0x42d5b4
test byte [ebp + 0x7f], 0x7c
jne 0x42d7b7
cmp dword [ebp - 0x38], 4
jle 0x42d72f
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 0x42d7b7
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.0042fa51
add esp, 0x10
cmp edi, eax
jne 0x42d5b4
cmp dword [ebp - 0x8c], edx
jne 0x42d5b4
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 0x42d5b4
cmp dword [ebp + 0x5c], esi
jne 0x42d5b4
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp byte [eax], 0xeb
jne 0x42d5b4
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp word [eax + 0x1fe], 0xaa55
jne 0x42d5b4
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.0047b320
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 0x42da74
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 0x42d83d
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp + 0x30], eax
jne 0x42d865
cmp dword [ebp + 0x34], ebx
jne 0x42d865
mov eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x1c]
jne 0x42d83d
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x3c], eax
je 0x42d5b4
cmp dword [ebp], ebx
jle 0x42d865
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp - 0x44], eax
jne 0x42d865
cmp dword [ebp - 0x40], ebx
jne 0x42d865
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x38], eax
jne 0x42d865
mov eax, dword [ebp + 0x3c]
cmp eax, dword [ebp + 0x20]
jne 0x42d865
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 0x42d5b4
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ebx
mov dword [ebp + 0x4c], ebx
jmp 0x42d59a
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 0x42d8f6
jl 0x42dd4b
cmp dword [ebp + 0x1c], ebx
jbe 0x42dd4b
cmp dword [ebp - 0x24], ecx
jl 0x42d90d
jg 0x42d905
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp + 0x1c]
jbe 0x42d910
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ecx
jmp 0x42d910
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 0x42d931
ja 0x42dd48
cmp eax, 0xfffffde0
jae 0x42dd48
mov eax, dword [ebp + 0x78]
cdq
push edx
push eax
push dword [ebp - 0x24]
push edi
call fcn.0047b270
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.0042fa51
add esp, 0x10
cmp dword [ebp + 0x30], eax
jne 0x42dd48
cmp dword [ebp + 0x34], edx
jne 0x42dd48
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.00433b3f
cmp eax, ebx
mov dword [ebp + 0x48], eax
je 0x42dd48
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 0x42da4f
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 0x42dd48
cmp dword [ebp + 0x5c], edi
jb 0x42dd48
mov eax, dword [ebp + 0x6c]
sub esi, dword [eax]
add esi, dword [ebp + 0x78]
mov dword [eax + 8], esi
jmp 0x42da53
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 0x42dd48
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.0047b530
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 0x42da03
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.0047b210
add esp, 0xc
jmp 0x42dd4b
cmp byte [ebp + 0x47], bl
je 0x42daaf
cmp dword [ebp - 8], ebx
jle 0x42daaf
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 0x42daa4
lea eax, [edi + edi]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x6c]
push dword [eax]
call fcn.0047b870
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 0x42daf1
xor eax, eax
cmp eax, ebx
ja 0x42dabf
cmp dword [ebp + 4], ebx
jbe 0x42daf1
cmp dword [ebp - 0x14], ebx
jne 0x42daf1
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 0x42dd4b
mov cl, byte [ebp + 0x44]
xor eax, eax
cmp byte [ebp + 0x7b], bl
sete al
test cl, al
jne 0x42dd4b
cmp byte [ebp + 0x7b], bl
jne 0x42db1e
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x18], eax
jmp 0x42db21
mov eax, dword [ebp + 0x18]
cmp cl, bl
mov edi, dword [ebp - 0x18]
je 0x42db5b
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.0047b870
push dword [ebp + 0x7c]
push ebx
push dword [ebp + 0x78]
call fcn.0047b210
add esp, 0x18
jmp 0x42dc53
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 0x42db7d
mov cl, byte [ebp + 0x46]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x4c]
cmp ecx, 1
jb 0x42db93
ja 0x42db8c
cmp dword [ebp - 0x50], ebx
jb 0x42db93
or byte [eax + 1], 0x80
mov ecx, dword [ebp - 0x4c]
test byte [eax + 1], 0x80
je 0x42dbae
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 0x42dc56
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.0047c0e0
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 0x42dc1a
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x7c]
cmp byte [ecx + eax - 1], bl
jne 0x42dc1a
dec dword [ebp + 0x7c]
mov eax, 0xf1
cmp dword [ebp + 0x7c], eax
jle 0x42dc27
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.0047b530
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 0x42dc7e
mov ebx, 0x80070057
jmp 0x42dd4b
cmp dword [ebp + 0x7c], eax
jg 0x42dd4b
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.0047b320
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edx
call fcn.0042fa51
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp eax, edi
mov dword [ebp - 8], eax
jle 0x42dcd6
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.0047b530
push ebx
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp + 0x58]
call fcn.0042fa51
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 0x42dca2
jmp 0x42dd4b
mov esi, dword [ebp + 0x6c]
push 0x64
mov ecx, esi
call fcn.00433c6b
mov eax, dword [esi]
mov word [eax], bx
or ebx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042eb98
lea ecx, [ebp + 0x58]
call fcn.00402ac9
pop esi
lea ecx, [ebp - 0x80]
call fcn.0042eb98
pop edi
mov eax, ebx
pop ebx
add ebp, 0x60
leave
ret