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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc351
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x532d60]
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 [0x5326d0]
mov ecx, 0x5326d0
mov dword [ebp - 0x5c], edi
call dword [eax + 0xc]
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 0x4385a8
mov ecx, 0x51a060
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438536
test dx, dx
je 0x438532
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438536
add eax, 4
add ecx, 4
test dx, dx
jne 0x438510
xor eax, eax
jmp 0x43853b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x4385a8
lea ecx, [ebp - 0x44]
call fcn.004369c0
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x58], 3
test eax, eax
jne 0x43856a
push 0x80004005
call fcn.0040cad0
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438596
test dx, dx
je 0x438592
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438596
add eax, 4
add ecx, 4
test dx, dx
jne 0x438570
xor eax, eax
jmp 0x43859b
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0x21], 0
test al, al
je 0x4385ac
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x58]
or ebx, 0xffffffff
test al, 2
je 0x4385d8
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 0x4385d8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21], 0
je 0x438843
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.Received_an_invalid_path
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x438622
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x43862f
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e50
jmp 0x43862f
push str.Received_an_invalid_path
lea ecx, [ebp - 0x28]
call fcn.004048b0
mov dword [ebp - 4], 2
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.ReadTextFi1e
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x438673
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438682
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e50
jmp 0x438682
push 0xc
push str.ReadTextFi1e
lea ecx, [ebp - 0x2c]
call fcn.00404a90
mov byte [ebp - 4], 4
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
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.00433ec0
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 6
mov edx, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 7
test eax, 0xffff0000
jne 0x4386f9
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.00405910
test eax, eax
je 0x438708
push dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push eax
call fcn.00404e50
jmp 0x438708
push 9
push str.GlobalLog
lea ecx, [ebp - 0x34]
call fcn.00404a90
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, 0x537920
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 0x438743
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x438763
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 0x438780
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4387a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x4387c0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x48]
call fcn.004369c0
mov dword [ebp - 4], 9
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x43881c
cmp dword [esi + 0xc], 0
jl 0x438811
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x438811
call fcn.00404b50
mov dword [ebp - 0x40], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43880a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x40]
add eax, 0x10
mov dword [edi], eax
jmp 0x43881c
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00404a90
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 0x439089
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x439089
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x438b1a
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.Failed_to_open_fi1e:
mov dword [ebp - 4], 0xa
test eax, 0xffff0000
jne 0x4388a6
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x4388b3
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404e50
jmp 0x4388b3
push str.Failed_to_open_fi1e:
lea ecx, [ebp - 0x20]
call fcn.004048b0
mov dword [ebp - 4], 0xb
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.Re_dTextFile
mov byte [ebp - 4], 0xc
test eax, 0xffff0000
jne 0x4388f7
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438906
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e50
jmp 0x438906
push 0xc
push str.Re_dTextFile
lea ecx, [ebp - 0x2c]
call fcn.00404a90
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00433f60
mov edi, eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [edx + 0xc]
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], 0xf
call fcn.00433ec0
push edi
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.00433ec0
add esp, 8
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 0x12
test eax, 0xffff0000
jne 0x43899e
movzx edi, ax
mov ecx, edi
call fcn.00405910
test eax, eax
je 0x4389ad
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e50
jmp 0x4389ad
push 9
push str.GlobalLog
lea ecx, [ebp - 0x28]
call fcn.00404a90
push 2
mov byte [ebp - 4], 0x13
push dword [ebp - 0x48]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x537920
call fcn.004018b0
mov byte [ebp - 4], 0x11
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 0x4389e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
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 0x438a08
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xf
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 0x438a28
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 0x438a45
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xd
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 0x438a65
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
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 0x438a85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x438aa5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.004369c0
mov dword [ebp - 4], 0x14
mov edi, dword [ebp - 0x34]
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x438b0e
cmp dword [esi + 0xc], 0
jl 0x438b03
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x438b03
call fcn.00404b50
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438af2
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
mov dword [edi], eax
jmp 0x438823
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00404a90
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
jmp 0x438823
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 0x438d96
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.GetFile_izeEx_failed
mov dword [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x438b75
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438b82
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404e50
jmp 0x438b82
push str.GetFile_izeEx_failed
lea ecx, [ebp - 0x2c]
call fcn.004048b0
mov dword [ebp - 4], 0x16
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.Re_dTextFile
mov byte [ebp - 4], 0x17
test eax, 0xffff0000
jne 0x438bc6
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438bd5
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404e50
jmp 0x438bd5
push 0xc
push str.Re_dTextFile
lea ecx, [ebp - 0x28]
call fcn.00404a90
mov byte [ebp - 4], 0x18
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
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], 0x19
call fcn.00433ec0
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x1a
mov edx, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.GlobalLog
mov byte [ebp - 4], 0x1b
test eax, 0xffff0000
jne 0x438c4c
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.00405910
test eax, eax
je 0x438c5b
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
call fcn.00404e50
jmp 0x438c5b
push 9
push str.GlobalLog
lea ecx, [ebp - 0x20]
call fcn.00404a90
push 2
mov byte [ebp - 4], 0x1c
push dword [ebp - 0x40]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x537920
call fcn.004018b0
mov byte [ebp - 4], 0x1a
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 0x438c96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x19
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 0x438cb6
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 0x438cd3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x16
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 0x438cf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x438d13
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.004369c0
mov dword [ebp - 4], 0x1d
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x438d6f
cmp dword [esi + 0xc], 0
jl 0x438d64
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x438d64
call fcn.00404b50
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x438d5d
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x30]
add eax, 0x10
mov dword [edi], eax
jmp 0x438d6f
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.00404a90
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 0x439080
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x439080
cmp dword [ebp - 0x14], 0
je 0x438f1d
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.File__ize_is_too_big
mov dword [ebp - 4], 0x1e
test eax, 0xffff0000
jne 0x438de0
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438ded
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404e50
jmp 0x438ded
push str.File__ize_is_too_big
lea ecx, [ebp - 0x20]
call fcn.004048b0
push str.ReadFromFi1e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x1f
call fcn.00403ac0
mov byte [ebp - 4], 0x20
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
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], 0x21
call fcn.00433ec0
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x22
call fcn.00403ac0
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x537920
mov byte [ebp - 4], 0x23
call fcn.004018b0
mov byte [ebp - 4], 0x22
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 0x438e7a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x21
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 0x438e9a
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 0x438eb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x1f
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 0x438ed7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x438ef7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.004369c0
mov dword [ebp - 4], 0x24
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403c20
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
jmp 0x438d76
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4390a7
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.Fi1e__ize_i__zero
mov dword [ebp - 4], 0x25
test eax, 0xffff0000
jne 0x438f68
movzx esi, ax
mov ecx, esi
call fcn.00405910
test eax, eax
je 0x438f75
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404e50
jmp 0x438f75
push str.Fi1e__ize_i__zero
lea ecx, [ebp - 0x20]
call fcn.004048b0
push str.ReadFromFi1e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x26
call fcn.00403ac0
mov byte [ebp - 4], 0x27
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
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], 0x28
call fcn.00433ec0
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x29
call fcn.00403ac0
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x537920
mov byte [ebp - 4], 0x2a
call fcn.004018b0
mov byte [ebp - 4], 0x29
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 0x439002
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x28
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 0x439022
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 0x43903f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x26
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 0x43905f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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 0x43907d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.004b8181
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.004395c0
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 0x43921a
push str.Re_dFi1e_error
lea ecx, [ebp - 0x28]
call fcn.00403b70
push str.Re_dFromFile
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x2c
call fcn.00403ac0
mov byte [ebp - 4], 0x2d
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
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], 0x2e
call fcn.00433ec0
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 - 0x38]
call fcn.00433e20
push 2
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x30
call fcn.0040cd20
mov byte [ebp - 4], 0x2f
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 0x439186
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2e
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 0x4391a6
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 0x4391c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
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 0x4391e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x439201
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x43907d
push eax
call fcn.004b817c
add esp, 4
jmp 0x43907d
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.00436000
mov eax, dword [ebp - 0x20]
add esp, 8
test eax, eax
jle 0x439258
add eax, esi
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x54]
call fcn.00439640
mov esi, dword [ebp - 0x54]
cmp byte [ebp - 0x39], 0
mov edi, dword [ebp - 0x50]
je 0x43927b
mov ecx, esi
cmp esi, edi
je 0x43927b
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 0x439267
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x4392b0
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004395c0
cmp byte [ebp - 0x21], 0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
je 0x439303
inc edi
push edi
lea ecx, [ebp - 0x54]
call fcn.004395c0
mov esi, dword [ebp - 0x54]
mov byte [esi + edi - 1], 0
jmp 0x4392cb
cmp byte [ebp - 0x21], 0
je 0x439303
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x54]
call fcn.004395c0
mov esi, dword [ebp - 0x54]
mov word [esi + edi], 0
push esi
lea ecx, [ebp - 0x30]
call fcn.00403ac0
mov byte [ebp - 4], 0x31
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403c20
mov byte [ebp - 4], 0x2b
mov edx, dword [ebp - 0x30]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x43935c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x43935c
mov eax, dword [0x5326d0]
mov ecx, 0x5326d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x32
call fcn.004048b0
mov byte [ebp - 4], 0x33
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00403c20
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 0x439353
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.004356a0
test esi, esi
je 0x439080
push esi
call fcn.004b817c
add esp, 4
jmp 0x439080