Function at 0x435690
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push reloc.kernel32.dll_FileTimeToLocalFileTime
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x52bd60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0
mov dword [edi], 0
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
mov dword [ebp - 0x5c], edi
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x58], 1
cmp dword [eax - 0xc], 0
je 0x4357a8
mov ecx, 0x512960
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435736
test dx, dx
je 0x435732
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435736
add eax, 4
add ecx, 4
test dx, dx
jne 0x435710
xor eax, eax
jmp 0x43573b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4357a8
lea ecx, [ebp - 0x44]
call fcn.00433d50
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x58], 3
test eax, eax
jne 0x43576a
push 0x80004005
call fcn.0040c6f0
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435796
test dx, dx
je 0x435792
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435796
add eax, 4
add ecx, 4
test dx, dx
jne 0x435770
xor eax, eax
jmp 0x43579b
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0x21], 0
test al, al
je 0x4357ac
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x58]
or ebx, 0xffffffff
test al, 2
je 0x4357d8
mov edx, dword [ebp - 0x44]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x58], eax
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4357d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
cmp byte [ebp - 0x21], 0
je 0x435a43
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.Received_an_inv_lid_path
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x435822
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x43582f
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a70
jmp 0x43582f
push str.Received_an_inv_lid_path
lea ecx, [ebp - 0x28]
call fcn.004044d0
mov dword [ebp - 4], 2
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.Re_dTextFi1e
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x435873
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435882
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404a70
jmp 0x435882
push reloc.kernel32.dll_AssignProcessToJobObject
push str.Re_dTextFi1e
lea ecx, [ebp - 0x2c]
call fcn.004046b0
mov byte [ebp - 4], 4
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.00431c80
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 6
mov edx, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [edx + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x4358f9
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.00405530
test eax, eax
je 0x435908
push dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push eax
call fcn.00404a70
jmp 0x435908
push 9
push str.GlobalLog
lea ecx, [ebp - 0x34]
call fcn.004046b0
push 2
mov byte [ebp - 4], 8
push dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
mov ecx, 0x530768
call fcn.004018b0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435943
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435963
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435980
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4359a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4359c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea ecx, [ebp - 0x48]
call fcn.00433d50
mov dword [ebp - 4], 9
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x435a1c
cmp dword [esi + 0xc], 0
jl 0x435a11
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435a11
call fcn.00404770
mov dword [ebp - 0x40], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435a0a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [edi], eax
jmp 0x435a1c
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x436289
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
jmp 0x436289
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x435d1a
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.F_i1ed_to_open_fi1e:
mov dword [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x435aa6
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435ab3
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404a70
jmp 0x435ab3
push str.F_i1ed_to_open_fi1e:
lea ecx, [ebp - 0x20]
call fcn.004044d0
mov dword [ebp - 4], reloc.kernel32.dll_ConvertDefaultLocale
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.Re_dTextFile
mov byte [ebp - 4], reloc.kernel32.dll_AssignProcessToJobObject
test eax, 0xffff0000
jne 0x435af7
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435b06
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404a70
jmp 0x435b06
push reloc.kernel32.dll_AssignProcessToJobObject
push str.Re_dTextFile
lea ecx, [ebp - 0x2c]
call fcn.004046b0
mov byte [ebp - 4], reloc.kernel32.dll_CreateFileMappingW
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00431d20
mov edi, eax
mov byte [ebp - 4], reloc.kernel32.dll_ReleaseActCtx
mov edx, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [edx + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], reloc.kernel32.dll_UnmapViewOfFile
call fcn.00431c80
push edi
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], reloc.kernel32.dll_GetUserDefaultLangID
call fcn.00431c80
add esp, 8
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], reloc.kernel32.dll_GetDiskFreeSpaceA
mov edx, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [edx + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], reloc.kernel32.dll_SetSystemTime
test eax, 0xffff0000
jne 0x435b9e
movzx edi, ax
mov ecx, edi
call fcn.00405530
test eax, eax
je 0x435bad
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a70
jmp 0x435bad
push 9
push str.GlobalLog
lea ecx, [ebp - 0x28]
call fcn.004046b0
push 2
mov byte [ebp - 4], reloc.kernel32.dll_OpenSemaphoreW
push dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x530768
call fcn.004018b0
mov byte [ebp - 4], reloc.kernel32.dll_GetDiskFreeSpaceA
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435be8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_GetUserDefaultLangID
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435c08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_UnmapViewOfFile
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435c28
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_ReleaseActCtx
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435c45
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_CreateFileMappingW
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435c65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_ConvertDefaultLocale
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435c85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435ca5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea ecx, [ebp - 0x38]
call fcn.00433d50
mov dword [ebp - 4], reloc.kernel32.dll_SetConsoleCursorPosition
mov edi, dword [ebp - 0x34]
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x435d0e
cmp dword [esi + 0xc], 0
jl 0x435d03
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435d03
call fcn.00404770
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435cf2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
mov dword [edi], eax
jmp 0x435a23
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
jmp 0x435a23
lea ecx, [ebp - 0x18]
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x435f96
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.GetFi1eSizeEx_f_iled
mov dword [ebp - 4], reloc.kernel32.dll_GetConsoleOutputCP
test eax, 0xffff0000
jne 0x435d75
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435d82
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404a70
jmp 0x435d82
push str.GetFi1eSizeEx_f_iled
lea ecx, [ebp - 0x2c]
call fcn.004044d0
mov dword [ebp - 4], reloc.kernel32.dll_OpenEventW
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.ReadTextFile
mov byte [ebp - 4], reloc.kernel32.dll_SetCurrentDirectoryA
test eax, 0xffff0000
jne 0x435dc6
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435dd5
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404a70
jmp 0x435dd5
push reloc.kernel32.dll_AssignProcessToJobObject
push str.ReadTextFile
lea ecx, [ebp - 0x28]
call fcn.004046b0
mov byte [ebp - 4], reloc.kernel32.dll_IsProcessInJob
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], reloc.kernel32.dll_CreateDirectoryW
call fcn.00431c80
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], reloc.kernel32.dll_GetSystemPowerStatus
mov edx, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [edx + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], reloc.kernel32.dll_QueryDosDeviceW
test eax, 0xffff0000
jne 0x435e4c
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.00405530
test eax, eax
je 0x435e5b
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
call fcn.00404a70
jmp 0x435e5b
push 9
push str.GlobalLog
lea ecx, [ebp - 0x20]
call fcn.004046b0
push 2
mov byte [ebp - 4], reloc.kernel32.dll_WritePrivateProfileSectionA
push dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x530768
call fcn.004018b0
mov byte [ebp - 4], reloc.kernel32.dll_GetSystemPowerStatus
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435e96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_CreateDirectoryW
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435eb6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_IsProcessInJob
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435ed3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_OpenEventW
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435ef3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435f13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea ecx, [ebp - 0x38]
call fcn.00433d50
mov dword [ebp - 4], reloc.kernel32.dll_lstrcpynW
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x435f6f
cmp dword [esi + 0xc], 0
jl 0x435f64
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435f64
call fcn.00404770
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435f5d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [edi], eax
jmp 0x435f6f
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046b0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x436280
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
jmp 0x436280
cmp dword [ebp - 0x14], 0
je 0x43611d
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.File_size_i__too_big
mov dword [ebp - 4], reloc.kernel32.dll_CopyFileA
test eax, 0xffff0000
jne 0x435fe0
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x435fed
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404a70
jmp 0x435fed
push str.File_size_i__too_big
lea ecx, [ebp - 0x20]
call fcn.004044d0
push str.Re_dFromFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], reloc.kernel32.dll_ReadProcessMemory
call fcn.004036e0
mov byte [ebp - 4], reloc.kernel32.dll_GetStringTypeA
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], reloc.kernel32.dll_CreateProcessA
call fcn.00431c80
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], reloc.kernel32.dll_WaitForSingleObjectEx
call fcn.004036e0
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x530768
mov byte [ebp - 4], reloc.kernel32.dll_CreateNamedPipeA
call fcn.004018b0
mov byte [ebp - 4], reloc.kernel32.dll_WaitForSingleObjectEx
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43607a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_CreateProcessA
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43609a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_GetStringTypeA
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4360b7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_ReadProcessMemory
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4360d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4360f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
lea ecx, [ebp - 0x30]
call fcn.00433d50
mov dword [ebp - 4], reloc.kernel32.dll_SetDllDirectoryA
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403840
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
jmp 0x435f76
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4362a7
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.File__ize_is_zero
mov dword [ebp - 4], reloc.kernel32.dll_GetComputerNameExA
test eax, 0xffff0000
jne 0x436168
movzx esi, ax
mov ecx, esi
call fcn.00405530
test eax, eax
je 0x436175
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404a70
jmp 0x436175
push str.File__ize_is_zero
lea ecx, [ebp - 0x20]
call fcn.004044d0
push str.ReadFromFi1e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], reloc.kernel32.dll_WakeConditionVariable
call fcn.004036e0
mov byte [ebp - 4], reloc.kernel32.dll_FormatMessageA
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], reloc.kernel32.dll_CreateFileA
call fcn.00431c80
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], reloc.kernel32.dll_SetFileAttributesW
call fcn.004036e0
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x530768
mov byte [ebp - 4], reloc.kernel32.dll_AddVectoredExceptionHandler
call fcn.004018b0
mov byte [ebp - 4], reloc.kernel32.dll_SetFileAttributesW
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x436202
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_CreateFileA
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x436222
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_FormatMessageA
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43623f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_WakeConditionVariable
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x43625f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x43627d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov edi, dword [ebp - 0x34]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b4591
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], reloc.kernel32.dll_LocalReAlloc
call fcn.004367a0
mov esi, dword [ebp - 0x54]
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push esi
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43641a
push str.Re_dFile_error
lea ecx, [ebp - 0x28]
call fcn.00403790
push str.Re_dFromFi1e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], reloc.kernel32.dll_CreateSemaphoreW
call fcn.004036e0
mov byte [ebp - 4], reloc.kernel32.dll_GetShortPathNameA
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
lea esi, [eax + 0x10]
mov dword [ebp - 0x30], esi
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], reloc.kernel32.dll_GetFileAttributesExW
call fcn.00431c80
add esp, 4
mov edi, eax
mov byte [ebp - 4], reloc.kernel32.dll_GetTimeFormatW
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, edi
lea ecx, [ebp - 0x38]
call fcn.00431be0
push 2
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], reloc.kernel32.dll_GetVolumePathNamesForVolumeNameA
call fcn.0040c920
mov byte [ebp - 4], reloc.kernel32.dll_GetTimeFormatW
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x436386
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_GetFileAttributesExW
mov edx, dword [ebp - 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4363a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
add esi, 0xfffffff0
mov byte [ebp - 4], reloc.kernel32.dll_GetShortPathNameA
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4363c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_CreateSemaphoreW
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4363e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov byte [ebp - 4], reloc.kernel32.dll_LocalReAlloc
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x436401
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x43627d
push eax
call fcn.004b458c
add esp, 4
jmp 0x43627d
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x39]
push eax
lea edx, [ebp - 0x21]
mov ecx, esi
mov byte [ebp - 0x21], 0
mov byte [ebp - 0x39], 0
mov dword [ebp - 0x20], 0
call fcn.00433320
mov eax, dword [ebp - 0x20]
add esp, 8
test eax, eax
jle 0x436458
add eax, esi
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.00436820
mov esi, dword [ebp - 0x54]
cmp byte [ebp - 0x39], 0
mov edi, dword [ebp - 0x50]
mov dword [ebp - 0x20], edi
je 0x4364d3
mov ecx, esi
cmp esi, edi
je 0x436484
lea ebx, [ebx]
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
mov byte [ecx + 1], dl
mov byte [ecx], bl
add ecx, 2
cmp ecx, edi
jne 0x436470
or ebx, 0xffffffff
mov edi, dword [0x530408]
lea ecx, [edi + 2]
lea eax, [edi + 1]
imul eax, ecx
imul eax, edi
cdq
mov ecx, reloc.kernel32.dll_ConvertDefaultLocale
idiv ecx
cmp edx, 7
jne 0x4364d0
xor eax, eax
test edi, edi
je 0x4364cb
xor esi, esi
jmp 0x4364b0
mov eax, edi
mov ecx, edi
cdq
sub eax, edx
and ecx, 1
mov edi, eax
add esi, ecx
sar edi, 1
jne 0x4364b0
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x30]
mov dword [0x530408], eax
mov edi, dword [ebp - 0x20]
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x436508
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004367a0
cmp byte [ebp - 0x21], 0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
je 0x43655b
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004367a0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
jmp 0x436523
cmp byte [ebp - 0x21], 0
je 0x43655b
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x54]
call fcn.004367a0
mov esi, dword [ebp - 0x54]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x30]
call fcn.004036e0
mov byte [ebp - 4], reloc.kernel32.dll_GetDriveTypeW
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403840
mov byte [ebp - 4], reloc.kernel32.dll_LocalReAlloc
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4365b4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
jmp 0x4365b4
mov eax, dword [0x52b6d0]
mov ecx, 0x52b6d0
call dword [eax + reloc.kernel32.dll_AssignProcessToJobObject]
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], reloc.kernel32.dll_PowerCreateRequest
call fcn.004044d0
mov byte [ebp - 4], reloc.kernel32.dll_GetProcessIoCounters
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00403840
mov byte [ebp - 4], reloc.kernel32.dll_LocalReAlloc
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4365ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.kernel32.dll_IsBadStringPtrA]
mov edx, edi
mov ecx, edi
call fcn.00433090
test esi, esi
je 0x436280
push esi
call fcn.004b458c
add esp, 4
jmp 0x436280