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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4debf1
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
push edi
mov eax, dword [0x532ab0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [esi]
mov dword [ebp - 0x18], 1
cmp dword [eax - 0xc], 0
je 0x425888
mov ecx, 0x516c94
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425816
test dx, dx
je 0x425812
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425816
add eax, 4
add ecx, 4
test dx, dx
jne 0x4257f0
xor eax, eax
jmp 0x42581b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x425888
lea ecx, [ebp - 0x28]
call fcn.00423c30
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x18], 3
test eax, eax
jne 0x42584a
push 0x80004005
call fcn.00401010
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x425876
test dx, dx
je 0x425872
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x425876
add eax, 4
add ecx, 4
test dx, dx
jne 0x425850
xor eax, eax
jmp 0x42587b
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0xd], 0
test al, al
je 0x42588c
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
or ebx, 0xffffffff
test al, 2
je 0x4258b8
mov edx, dword [ebp - 0x28]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x18], eax
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4258b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x425b32
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, str.Received_an_invalid_path
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x425902
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x42590f
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f80
jmp 0x42590f
push str.Received_an_invalid_path
lea ecx, [ebp - 0x24]
call fcn.00404640
mov dword [ebp - 4], 2
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.ReadTextFile
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x425953
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x425962
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f80
jmp 0x425962
push 0xc
push str.ReadTextFile
lea ecx, [ebp - 0x20]
call fcn.00401be0
mov byte [ebp - 4], 4
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0041de50
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov edx, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x4259d9
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x2c], eax
call fcn.00401140
test eax, eax
je 0x4259e8
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00401f80
jmp 0x4259e8
push 9
push str.GlobalLog
lea ecx, [ebp - 0x1c]
call fcn.00401be0
push 2
mov byte [ebp - 4], 8
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x53b9d8
call fcn.004024e0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425a23
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
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 0x425a43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x425a60
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
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 0x425a80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425aa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.00423c30
mov dword [ebp - 4], 9
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x425afc
cmp dword [esi + 0xc], 0
jl 0x425af1
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x425af1
call fcn.00401d10
mov dword [ebp - 0x34], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425aea
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [edi], eax
jmp 0x425afc
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00401be0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x426378
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
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 - 0x28], eax
cmp eax, 0xffffffff
jne 0x425e09
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.Failed_to_open_file:
mov dword [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x425b95
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x425ba2
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f80
jmp 0x425ba2
push str.Failed_to_open_file:
lea ecx, [ebp - 0x1c]
call fcn.00404640
mov dword [ebp - 4], 0xb
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.ReadTextFile
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x425be6
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x425bf5
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f80
jmp 0x425bf5
push 0xc
push str.ReadTextFile
lea ecx, [ebp - 0x20]
call fcn.00401be0
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x38]
call fcn.0041dee0
mov edi, eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xf
call fcn.0041de50
push edi
mov edx, eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x10
call fcn.0041de50
add esp, 8
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 0x12
test eax, 0xffff0000
jne 0x425c8d
movzx edi, ax
mov ecx, edi
call fcn.00401140
test eax, eax
je 0x425c9c
push edi
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f80
jmp 0x425c9c
push 9
push str.GlobalLog
lea ecx, [ebp - 0x24]
call fcn.00401be0
push 2
mov byte [ebp - 4], 0x13
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x53b9d8
call fcn.004024e0
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425cd7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
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 0x425cf7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
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 0x425d17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0xe
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425d34
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
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 0x425d54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
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 0x425d74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425d94
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.00423c30
mov dword [ebp - 4], 0x14
mov edi, dword [ebp - 0x14]
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x425dfd
cmp dword [esi + 0xc], 0
jl 0x425df2
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x425df2
call fcn.00401d10
mov dword [ebp - 0x38], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425de1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
mov dword [edi], eax
jmp 0x425b03
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00401be0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
jmp 0x425b03
lea ecx, [ebp - 0x48]
push ecx
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x48], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x426085
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, str.GetFileSizeEx_failed
mov dword [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x425e64
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x425e71
push esi
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f80
jmp 0x425e71
push str.GetFileSizeEx_failed
lea ecx, [ebp - 0x1c]
call fcn.00404640
mov dword [ebp - 4], 0x16
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.ReadTextFile
mov byte [ebp - 4], 0x17
test eax, 0xffff0000
jne 0x425eb5
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x425ec4
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00401f80
jmp 0x425ec4
push 0xc
push str.ReadTextFile
lea ecx, [ebp - 0x20]
call fcn.00401be0
mov byte [ebp - 4], 0x18
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x19
call fcn.0041de50
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x1a
mov edx, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 0x1b
test eax, 0xffff0000
jne 0x425f3b
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.00401140
test eax, eax
je 0x425f4a
push dword [ebp - 0x34]
lea ecx, [ebp - 0x24]
push eax
call fcn.00401f80
jmp 0x425f4a
push 9
push str.GlobalLog
lea ecx, [ebp - 0x24]
call fcn.00401be0
push 2
mov byte [ebp - 4], 0x1c
push dword [ebp - 0x30]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x53b9d8
call fcn.004024e0
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425f85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
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 0x425fa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x18
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425fc2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
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 0x425fe2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x426002
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.00423c30
mov dword [ebp - 4], 0x1d
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x42605e
cmp dword [esi + 0xc], 0
jl 0x426053
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x426053
call fcn.00401d10
mov dword [ebp - 0x38], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42604c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x38]
add eax, 0x10
mov dword [edi], eax
jmp 0x42605e
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00401be0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42636f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42636f
cmp dword [ebp - 0x44], 0
je 0x42620c
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, str.File_size_is_too_big
mov dword [ebp - 4], 0x1e
test eax, 0xffff0000
jne 0x4260cf
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x4260dc
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f80
jmp 0x4260dc
push str.File_size_is_too_big
lea ecx, [ebp - 0x24]
call fcn.00404640
push str.ReadFromFile
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0x1f
call fcn.004019c0
mov byte [ebp - 4], 0x20
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x21
call fcn.0041de50
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x22
call fcn.004019c0
push 2
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x53b9d8
mov byte [ebp - 4], 0x23
call fcn.004024e0
mov byte [ebp - 4], 0x22
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 0x426169
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
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 0x426189
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x20
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4261a6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4261c6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4261e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.00423c30
mov dword [ebp - 4], 0x24
mov edi, dword [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00401a90
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
jmp 0x426065
mov eax, dword [ebp - 0x48]
test eax, eax
jne 0x42638c
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, str.File_size_is_zero
mov dword [ebp - 4], 0x25
test eax, 0xffff0000
jne 0x426257
movzx esi, ax
mov ecx, esi
call fcn.00401140
test eax, eax
je 0x426264
push esi
push eax
lea ecx, [ebp - 0x24]
call fcn.00401f80
jmp 0x426264
push str.File_size_is_zero
lea ecx, [ebp - 0x24]
call fcn.00404640
push str.ReadFromFile
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0x26
call fcn.004019c0
mov byte [ebp - 4], 0x27
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x28
call fcn.0041de50
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x29
call fcn.004019c0
push 2
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x53b9d8
mov byte [ebp - 4], 0x2a
call fcn.004024e0
mov byte [ebp - 4], 0x29
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 0x4262f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
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 0x426311
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x27
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42632e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42634e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42636c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x14]
push dword [ebp - 0x28]
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 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], 0x2b
call fcn.004266f0
mov esi, dword [ebp - 0x54]
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push esi
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4264ff
push str.ReadFile_error
lea ecx, [ebp - 0x20]
call fcn.00404160
push str.ReadFromFile
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x2c
call fcn.004019c0
mov byte [ebp - 4], 0x2d
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x2e
call fcn.0041de50
add esp, 4
mov edi, eax
mov byte [ebp - 4], 0x2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, edi
lea ecx, [ebp - 0x34]
call fcn.0041ddc0
push 2
mov edx, eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x30
call fcn.0041bf20
mov byte [ebp - 4], 0x2f
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
add esp, 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42646b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2e
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 0x42648b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 0x2d
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4264a8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4264c8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4264e6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x42636c
push eax
call fcn.004a4ab0
add esp, 4
jmp 0x42636c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xe]
push eax
lea edx, [ebp - 0xd]
mov ecx, esi
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0x24], 0
call fcn.00423970
mov eax, dword [ebp - 0x24]
add esp, 8
test eax, eax
jle 0x42653d
add eax, esi
push eax
push esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x54]
call fcn.00426770
mov esi, dword [ebp - 0x54]
cmp byte [ebp - 0xe], 0
mov edi, dword [ebp - 0x50]
je 0x426564
mov ecx, esi
cmp esi, edi
je 0x426564
lea esp, [esp]
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 0x426550
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x426599
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004266f0
cmp byte [ebp - 0xd], 0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
je 0x4265ec
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004266f0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
jmp 0x4265b4
cmp byte [ebp - 0xd], 0
je 0x4265ec
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x54]
call fcn.004266f0
mov esi, dword [ebp - 0x54]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x38]
call fcn.004019c0
mov byte [ebp - 4], 0x31
mov edi, dword [ebp - 0x14]
push eax
mov ecx, edi
call fcn.00401a90
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x426645
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x426645
mov eax, dword [0x5326d8]
mov ecx, 0x5326d8
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x32
call fcn.00404640
mov byte [ebp - 4], 0x33
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
mov ecx, edi
call fcn.00401a90
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x42663c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.004236e0
test esi, esi
je 0x42636f
push esi
call fcn.004a4ab0
add esp, 4
jmp 0x42636f