Function at 0x42c116
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 0x42c134
cmp word [eax], bx
jne 0x42c134
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 0x42c167
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.00432f23
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 0x42c199
mov dword [ebp - 0x58], ebx
mov ecx, dword [ebp + 0x74]
mov eax, ecx
and eax, 0x60000
or eax, ebx
je 0x42c1ac
xor edi, edi
mov dword [ebp - 0x14], edi
mov eax, ecx
and eax, 0x200000
or eax, ebx
mov byte [ebp + 0x43], 1
jne 0x42c1be
mov byte [ebp + 0x43], bl
mov eax, ecx
and eax, 0x400000
or eax, ebx
mov byte [ebp + 0x45], 1
jne 0x42c1d0
mov byte [ebp + 0x45], bl
mov eax, ecx
and eax, 0x800000
or eax, ebx
mov byte [ebp + 0x47], 1
jne 0x42c1e2
mov byte [ebp + 0x47], bl
mov eax, dword [ebp - 0x58]
or eax, edx
mov eax, dword [ebp + 0x70]
mov byte [ebp + 0x44], bl
je 0x42c233
cmp eax, ebx
je 0x42c2aa
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.00414db6
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [eax], bx
jne 0x42c259
mov byte [ebp + 0x44], 1
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004374f6
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov dword [ebp + 0x70], eax
cmp eax, ebx
je 0x42c2aa
cmp word [eax], bx
mov ecx, eax
je 0x42c2aa
mov dx, word [ecx]
inc ecx
inc ecx
cmp dx, 0x5c
jne 0x42c252
mov word [ecx - 2], 0x2f
mov eax, dword [ebp + 0x70]
cmp word [ecx], bx
jne 0x42c23e
jmp 0x42c2a5
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp + 0x70]
push eax
call fcn.004374f6
test eax, eax
pop ecx
pop ecx
jg 0x42c21e
mov ebx, 0x80070057
jmp 0x42cf1c
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.00414db6
mov ecx, dword [ebp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x70], eax
cmp word [ecx], bx
je 0x42c2a5
push ecx
lea ecx, [ebp - 0x80]
call fcn.0040b45c
mov eax, dword [ebp + 0x70]
cmp word [eax], bx
jne 0x42c276
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 0x42c2da
mov eax, dword [esi]
cmp word [eax], 0x3c
jne 0x42c2da
cmp word [eax + 2], 0x3e
jne 0x42c2da
cmp word [eax + 4], bx
mov byte [ebp + 0x57], cl
je 0x42c2dd
mov byte [ebp + 0x57], bl
cmp edi, ebx
jne 0x42c319
xor edi, edi
cmp ecx, ebx
jle 0x42c319
mov eax, dword [esi + edi*4]
push 6
push eax
push str._udext
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x42c313
inc eax
cmp dword [ebp - 4], eax
jne 0x42c306
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 0x42c2e7
mov ecx, dword [ebp - 0x58]
xor eax, eax
or ecx, eax
je 0x42c33d
cmp dword [ebp - 4], ebx
jl 0x42c333
cmp esi, ebx
je 0x42c33d
mov ecx, dword [esi]
cmp word [ecx], 0x3c
jne 0x42c33d
mov ebx, 0x80070057
jmp 0x42cf1b
mov ecx, dword [ebp - 0x58]
or ecx, eax
mov dword [ebp + 0x58], ebx
je 0x42c34e
mov eax, 0x40000000
jmp 0x42c350
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.004041da
cmp dword [ebp + 0x58], ebx
jne 0x42c379
or ebx, 0xffffffff
jmp 0x42cf13
push 0xe0000
lea ecx, [ebp - 0x10]
call fcn.00432cd5
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 0x42cef7
cmp dword [edi + 0x1b4], 0x46424246
jne 0x42cef7
cmp word [edi + 0x1fe], 0xaa55
jne 0x42cef7
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.0042ec1a
add esp, 0x10
cmp dword [ebp + 4], eax
jne 0x42cef7
cmp dword [ebp + 8], edx
jne 0x42cef7
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 0x42cef7
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.0042ec1a
add esp, 0x10
cmp eax, 0x8600
jne 0x42c501
cmp edx, ebx
jne 0x42c501
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 0x42c501
cmp dword [ebp + 0x5c], esi
jne 0x42c501
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 0x42c501
cmp cl, bl
mov dword [ebp + 0x7c], 0x10000
jne 0x42c580
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 0x42c57d
xor eax, eax
cmp eax, dword [ebp + 0x3c]
jb 0x42c580
ja 0x42c512
mov eax, dword [ebp + 0x38]
cmp dword [ebp + 4], eax
jbe 0x42c580
cmp dword [ebp + 0x4c], ebx
je 0x42c580
push ebx
push esi
push dword [ebp + 0x34]
push dword [ebp + 0x30]
call fcn.00479e00
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], edx
call fcn.0042ec1a
add esp, 0x10
cmp dword [ebp + 0x1c], eax
jne 0x42c580
cmp dword [ebp + 0x20], edx
jne 0x42c580
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 0x42c580
cmp dword [ebp + 0x5c], esi
jne 0x42c580
cmp byte [edi], 0xeb
jne 0x42c580
cmp word [edi + 0x1fe], 0xaa55
jne 0x42c580
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.00432cfe
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 0x42c5d3
jg 0x42c5c1
cmp dword [ebp - 0x30], 0x44
jbe 0x42c5d3
mov eax, dword [ebp - 0xc]
shl eax, 0xa
push eax
lea ecx, [ebp - 0x10]
call fcn.00432cfe
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.00479e00
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
call fcn.0042ec1a
add esp, 0x10
cmp dword [ebp + 0x38], eax
jne 0x42cf08
cmp dword [ebp + 0x3c], edx
jne 0x42cf08
cmp dword [ebp - 0x48], ebx
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
mov dword [ebp + 0x2c], eax
je 0x42c624
cmp dword [ebp - 0x14], ebx
je 0x42c630
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.00479e00
cmp dword [ebp - 0x48], ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
je 0x42c6d8
cmp dword [ebp - 0x14], ebx
jne 0x42c6d8
xor eax, eax
cmp dword [ebp + 0x28], ebx
ja 0x42c661
cmp dword [ebp + 0x24], ebx
jbe 0x42c69b
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.00479e00
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 0x42c6b1
cmp dword [ebp + 0x24], ebx
jbe 0x42c6c8
or dword [ebp], 0xffffffff
push ebx
push esi
push dword [ebp + 0x28]
push dword [ebp + 0x24]
call fcn.00479e00
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x3c], edx
mov eax, dword [ebp + 0x74]
and eax, 0x40000
or eax, ebx
jne 0x42cf0b
cmp byte [ebp + 0x57], bl
jne 0x42c73a
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x7c], eax
jmp 0x42c735
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 0x42cf08
push esi
push dword [ebp + 0x50]
push dword [ebp + 0x48]
call fcn.0047a010
add esp, 0xc
add dword [ebp + 0x48], 0x1fe
mov al, byte [edi]
cmp al, bl
je 0x42c73a
movzx eax, al
lea eax, [eax + edi + 2]
cmp eax, dword [ebp + 0x48]
ja 0x42c72f
mov edi, eax
jmp 0x42c719
inc dword [ebp + 0x7c]
mov eax, dword [ebp + 0x7c]
cmp eax, dword [ebp + 0x4c]
jl 0x42c6e5
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp eax, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], eax
je 0x42c74c
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 0x42c774
mov dword [ebp - 0x34], edi
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x18]
jae 0x42cc34
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 0x42c7b8
ja 0x42c7b4
cmp edi, dword [ebp - 0x44]
jb 0x42c7b8
or byte [ebp + 0x7f], 1
mov al, byte [ebp + 0x46]
cmp al, bl
je 0x42c7c4
test byte [ebp + 0x7f], al
je 0x42c774
mov edi, dword [ebp + 0x28]
cmp edi, ebx
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x38], ebx
mov word [eax], bx
jle 0x42c819
cmp byte [edx], bl
je 0x42c819
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 0x42c819
cmp dword [ebp - 0x3c], ebx
jne 0x42ca74
cmp byte [ebp + 0x45], bl
je 0x42c836
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 6]
test ax, 0x1ff
jne 0x42c774
cmp eax, ebx
je 0x42c774
cmp byte [ebp + 0x43], bl
je 0x42c841
test byte [ebp + 0x7f], 0x7c
jne 0x42c86f
cmp dword [ebp - 4], ebx
je 0x42c86f
xor edi, edi
cmp dword [ebp - 4], ebx
jle 0x42c774
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 0x42c86f
inc edi
cmp edi, dword [ebp - 4]
jl 0x42c851
jmp 0x42c774
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 0x42c89a
push ebx
push esi
push ecx
push eax
call fcn.00479e00
mov ecx, edx
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp + 0x20], ecx
cmp dword [ebp - 0x14], ebx
jne 0x42ca82
cmp dword [ebp - 0x48], ebx
je 0x42c977
cmp eax, 0x8000
jb 0x42c774
test ax, 0x1ff
jne 0x42c774
test byte [ebp + 0x7f], 0x7c
jne 0x42c977
cmp dword [ebp - 0x38], 4
jle 0x42c8ef
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 0x42c977
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.0042ec1a
add esp, 0x10
cmp edi, eax
jne 0x42c774
cmp dword [ebp - 0x8c], edx
jne 0x42c774
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 0x42c774
cmp dword [ebp + 0x5c], esi
jne 0x42c774
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp byte [eax], 0xeb
jne 0x42c774
mov eax, dword [ebp + 0x50]
add eax, 0x400
cmp word [eax + 0x1fe], 0xaa55
jne 0x42c774
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.00479e00
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 0x42cc34
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 0x42c9fd
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp + 0x30], eax
jne 0x42ca25
cmp dword [ebp + 0x34], ebx
jne 0x42ca25
mov eax, dword [ebp + 0x38]
cmp eax, dword [ebp + 0x1c]
jne 0x42c9fd
mov eax, dword [ebp + 0x20]
cmp dword [ebp + 0x3c], eax
je 0x42c774
cmp dword [ebp], ebx
jle 0x42ca25
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 2]
cmp dword [ebp - 0x44], eax
jne 0x42ca25
cmp dword [ebp - 0x40], ebx
jne 0x42ca25
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x38], eax
jne 0x42ca25
mov eax, dword [ebp + 0x3c]
cmp eax, dword [ebp + 0x20]
jne 0x42ca25
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 0x42c774
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ebx
mov dword [ebp + 0x4c], ebx
jmp 0x42c75a
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 0x42cab6
jl 0x42cf0b
cmp dword [ebp + 0x1c], ebx
jbe 0x42cf0b
cmp dword [ebp - 0x24], ecx
jl 0x42cacd
jg 0x42cac5
mov edi, dword [ebp - 0x28]
cmp edi, dword [ebp + 0x1c]
jbe 0x42cad0
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x24], ecx
jmp 0x42cad0
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 0x42caf1
ja 0x42cf08
cmp eax, 0xfffffde0
jae 0x42cf08
mov eax, dword [ebp + 0x78]
cdq
push edx
push eax
push dword [ebp - 0x24]
push edi
call fcn.00479d50
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.0042ec1a
add esp, 0x10
cmp dword [ebp + 0x30], eax
jne 0x42cf08
cmp dword [ebp + 0x34], edx
jne 0x42cf08
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.00432b85
cmp eax, ebx
mov dword [ebp + 0x48], eax
je 0x42cf08
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 0x42cc0f
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 0x42cf08
cmp dword [ebp + 0x5c], edi
jb 0x42cf08
mov eax, dword [ebp + 0x6c]
sub esi, dword [eax]
add esi, dword [ebp + 0x78]
mov dword [eax + 8], esi
jmp 0x42cc13
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 0x42cf08
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.0047a010
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 0x42cbc3
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.00479cf0
add esp, 0xc
jmp 0x42cf0b
cmp byte [ebp + 0x47], bl
je 0x42cc6f
cmp dword [ebp - 8], ebx
jle 0x42cc6f
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 0x42cc64
lea eax, [edi + edi]
push eax
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0x6c]
push dword [eax]
call fcn.0047a350
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 0x42ccb1
xor eax, eax
cmp eax, ebx
ja 0x42cc7f
cmp dword [ebp + 4], ebx
jbe 0x42ccb1
cmp dword [ebp - 0x14], ebx
jne 0x42ccb1
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 0x42cf0b
mov cl, byte [ebp + 0x44]
xor eax, eax
cmp byte [ebp + 0x7b], bl
sete al
test cl, al
jne 0x42cf0b
cmp byte [ebp + 0x7b], bl
jne 0x42ccde
mov eax, dword [ebp - 0x18]
mov dword [ebp + 0x18], eax
jmp 0x42cce1
mov eax, dword [ebp + 0x18]
cmp cl, bl
mov edi, dword [ebp - 0x18]
je 0x42cd1b
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.0047a350
push dword [ebp + 0x7c]
push ebx
push dword [ebp + 0x78]
call fcn.00479cf0
add esp, 0x18
jmp 0x42ce13
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 0x42cd3d
mov cl, byte [ebp + 0x46]
mov byte [eax + 1], cl
mov ecx, dword [ebp - 0x4c]
cmp ecx, 1
jb 0x42cd53
ja 0x42cd4c
cmp dword [ebp - 0x50], ebx
jb 0x42cd53
or byte [eax + 1], 0x80
mov ecx, dword [ebp - 0x4c]
test byte [eax + 1], 0x80
je 0x42cd6e
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 0x42ce16
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.0047abc0
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 0x42cdda
mov eax, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x7c]
cmp byte [ecx + eax - 1], bl
jne 0x42cdda
dec dword [ebp + 0x7c]
mov eax, 0xf1
cmp dword [ebp + 0x7c], eax
jle 0x42cde7
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.0047a010
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 0x42ce3e
mov ebx, 0x80070057
jmp 0x42cf0b
cmp dword [ebp + 0x7c], eax
jg 0x42cf0b
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.00479e00
push ebx
push edx
push eax
push dword [ebp + 0x58]
mov dword [ebp + 4], eax
mov dword [ebp + 8], edx
call fcn.0042ec1a
mov eax, dword [ebp + 0x78]
add esp, 0x10
cmp eax, edi
mov dword [ebp - 8], eax
jle 0x42ce96
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.0047a010
push ebx
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp + 0x58]
call fcn.0042ec1a
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 0x42ce62
jmp 0x42cf0b
mov esi, dword [ebp + 0x6c]
push 0x64
mov ecx, esi
call fcn.00432cfe
mov eax, dword [esi]
mov word [eax], bx
or ebx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042dd2d
lea ecx, [ebp + 0x58]
call fcn.00402ad9
pop esi
lea ecx, [ebp - 0x80]
call fcn.0042dd2d
pop edi
mov eax, ebx
pop ebx
add ebp, 0x60
leave
ret