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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7991
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x52ad60]
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 - 0x4c], 0
mov dword [edi], 0
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 - 0x4c], 1
cmp dword [eax - 0xc], 0
je 0x435318
mov ecx, 0x512aa0
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4352a6
test dx, dx
je 0x4352a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4352a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435280
xor eax, eax
jmp 0x4352ab
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x435318
lea ecx, [ebp - 0x44]
call fcn.00433700
mov ecx, dword [eax]
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x4c], 3
test eax, eax
jne 0x4352da
push 0x80004005
call fcn.0040c740
mov eax, dword [esi]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435306
test dx, dx
je 0x435302
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435306
add eax, 4
add ecx, 4
test dx, dx
jne 0x4352e0
xor eax, eax
jmp 0x43530b
sbb eax, eax
or eax, 1
test eax, eax
sete al
mov byte [ebp - 0x21], 0
test al, al
je 0x43531c
mov byte [ebp - 0x21], 1
mov eax, dword [ebp - 0x4c]
or ebx, 0xffffffff
test al, 2
je 0x435348
mov edx, dword [ebp - 0x44]
and eax, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x4c], eax
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x435348
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x21], 0
je 0x4355b3
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.Received_an_invalid_p_th
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x435392
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x43539f
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404ab0
jmp 0x43539f
push str.Received_an_invalid_p_th
lea ecx, [ebp - 0x28]
call fcn.00404510
mov dword [ebp - 4], 2
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 0x4353e3
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x4353f2
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ab0
jmp 0x4353f2
push 0xc
push str.ReadTextFi1e
lea ecx, [ebp - 0x2c]
call fcn.004046f0
mov byte [ebp - 4], 4
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
add esp, 4
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 6
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 0x435469
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x20], eax
call fcn.00405570
test eax, eax
je 0x435478
push dword [ebp - 0x20]
lea ecx, [ebp - 0x34]
push eax
call fcn.00404ab0
jmp 0x435478
push 9
push str.GlobalLog
lea ecx, [ebp - 0x34]
call fcn.004046f0
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, 0x52f7a4
call fcn.004018e0
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 0x4354b3
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 0x4354d3
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 0x4354f0
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 0x435510
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 0x435530
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x48]
call fcn.00433700
mov dword [ebp - 4], 9
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x43558c
cmp dword [esi + 0xc], 0
jl 0x435581
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435581
call fcn.004047b0
mov dword [ebp - 0x40], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43557a
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 0x43558c
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046f0
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 0x435df9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x435df9
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 0x43588a
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
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 0x435616
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x435623
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404ab0
jmp 0x435623
push str.F_i1ed_to_open_fi1e:
lea ecx, [ebp - 0x20]
call fcn.00404510
mov dword [ebp - 4], 0xb
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 0x435667
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x435676
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ab0
jmp 0x435676
push 0xc
push str.Re_dTextFile
lea ecx, [ebp - 0x2c]
call fcn.004046f0
mov byte [ebp - 4], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.004315e0
mov edi, eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
push edi
mov edx, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x10
call fcn.00431540
add esp, 8
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 0x11
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 0x43570e
movzx edi, ax
mov ecx, edi
call fcn.00405570
test eax, eax
je 0x43571d
push edi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404ab0
jmp 0x43571d
push 9
push str.GlobalLog
lea ecx, [ebp - 0x28]
call fcn.004046f0
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, 0x52f7a4
call fcn.004018e0
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 0x435758
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 0x435778
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 0x435798
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 0x4357b5
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 0x4357d5
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 0x4357f5
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 0x435815
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.00433700
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 0x43587e
cmp dword [esi + 0xc], 0
jl 0x435873
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435873
call fcn.004047b0
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435862
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 0x435593
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046f0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x38]
jmp 0x435593
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 0x435b06
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov eax, str.GetFi1eSizeEx_f_iled
mov dword [ebp - 4], 0x15
test eax, 0xffff0000
jne 0x4358e5
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x4358f2
push esi
push eax
lea ecx, [ebp - 0x2c]
call fcn.00404ab0
jmp 0x4358f2
push str.GetFi1eSizeEx_f_iled
lea ecx, [ebp - 0x2c]
call fcn.00404510
mov dword [ebp - 4], 0x16
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, str.ReadTextFile
mov byte [ebp - 4], 0x17
test eax, 0xffff0000
jne 0x435936
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x435945
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00404ab0
jmp 0x435945
push 0xc
push str.ReadTextFile
lea ecx, [ebp - 0x28]
call fcn.004046f0
mov byte [ebp - 4], 0x18
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
add esp, 4
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 0x1a
mov edx, dword [0x52a6d0]
mov ecx, 0x52a6d0
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 0x4359bc
movzx eax, ax
mov ecx, eax
mov dword [ebp - 0x38], eax
call fcn.00405570
test eax, eax
je 0x4359cb
push dword [ebp - 0x38]
lea ecx, [ebp - 0x20]
push eax
call fcn.00404ab0
jmp 0x4359cb
push 9
push str.GlobalLog
lea ecx, [ebp - 0x20]
call fcn.004046f0
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, 0x52f7a4
call fcn.004018e0
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 0x435a06
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 0x435a26
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 0x435a43
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 0x435a63
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 0x435a83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x38]
call fcn.00433700
mov dword [ebp - 4], 0x1d
mov edx, dword [eax]
mov esi, dword [edi]
lea ecx, [edx - 0x10]
sub esi, 0x10
cmp ecx, esi
je 0x435adf
cmp dword [esi + 0xc], 0
jl 0x435ad4
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x435ad4
call fcn.004047b0
mov dword [ebp - 0x30], eax
mov ecx, ebx
lea edx, [esi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x435acd
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 0x435adf
push dword [edx - 0xc]
mov ecx, edi
push edx
call fcn.004046f0
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 0x435df0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x435df0
cmp dword [ebp - 0x14], 0
je 0x435c8d
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.Fi1e__ize_i__too_big
mov dword [ebp - 4], 0x1e
test eax, 0xffff0000
jne 0x435b50
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x435b5d
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404ab0
jmp 0x435b5d
push str.Fi1e__ize_i__too_big
lea ecx, [ebp - 0x20]
call fcn.00404510
push str.ReadFromFi1e
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x1f
call fcn.00403720
mov byte [ebp - 4], 0x20
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x22
call fcn.00403720
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x52f7a4
mov byte [ebp - 4], 0x23
call fcn.004018e0
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 0x435bea
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 0x435c0a
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 0x435c27
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 0x435c47
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 0x435c67
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x30]
call fcn.00433700
mov dword [ebp - 4], 0x24
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403880
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
jmp 0x435ae6
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x435e17
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov eax, str.Fi1e_size_is_zero
mov dword [ebp - 4], 0x25
test eax, 0xffff0000
jne 0x435cd8
movzx esi, ax
mov ecx, esi
call fcn.00405570
test eax, eax
je 0x435ce5
push esi
push eax
lea ecx, [ebp - 0x20]
call fcn.00404ab0
jmp 0x435ce5
push str.Fi1e_size_is_zero
lea ecx, [ebp - 0x20]
call fcn.00404510
push str.Re_dFromFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0x26
call fcn.00403720
mov byte [ebp - 4], 0x27
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
add esp, 4
mov edi, eax
push str.GlobalLog
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x29
call fcn.00403720
push 2
push edi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x52f7a4
mov byte [ebp - 4], 0x2a
call fcn.004018e0
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 0x435d72
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 0x435d92
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 0x435daf
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 0x435dcf
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 0x435ded
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.004b3a11
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0x2b
call fcn.004361b0
mov esi, dword [ebp - 0x58]
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 0x435f8a
push str.ReadFile_error
lea ecx, [ebp - 0x28]
call fcn.004037d0
push str.Re_dFromFi1e
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x2c
call fcn.00403720
mov byte [ebp - 4], 0x2d
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00431540
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.004314a0
push 2
mov edx, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x30
call fcn.0040c8d0
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 0x435ef6
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 0x435f16
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 0x435f33
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 0x435f53
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 0x435f71
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x435ded
push eax
call fcn.004b3a0c
add esp, 4
jmp 0x435ded
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.00432d90
mov eax, dword [ebp - 0x20]
add esp, 8
test eax, eax
jle 0x435fc8
add eax, esi
push eax
push esi
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x58]
call fcn.00436230
mov esi, dword [ebp - 0x58]
cmp byte [ebp - 0x39], 0
mov edi, dword [ebp - 0x54]
je 0x435feb
mov ecx, esi
cmp esi, edi
je 0x435feb
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 0x435fd7
or ebx, 0xffffffff
sub edi, esi
cmp byte [esi + edi - 1], 0
je 0x436087
inc edi
push edi
lea ecx, [ebp - 0x58]
call fcn.004361b0
cmp byte [ebp - 0x21], 0
mov esi, dword [ebp - 0x58]
mov byte [esi + edi - 1], 0
je 0x436022
inc edi
push edi
lea ecx, [ebp - 0x58]
call fcn.004361b0
mov esi, dword [ebp - 0x58]
mov byte [esi + edi - 1], 0
mov edi, dword [0x52f408]
lea ecx, [edi + 1]
lea eax, [edi + 2]
imul eax, ecx
imul eax, edi
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 5
jne 0x4360a2
xor ecx, ecx
jmp 0x436050
mov eax, dword [ebp + ecx*4 - 0x268]
add eax, dword [ebp + ecx*4 - 0x26c]
add ecx, 4
add eax, dword [ebp + ecx*4 - 0x280]
add eax, dword [ebp + ecx*4 - 0x284]
imul eax, eax, 0xd1
add edi, eax
cmp ecx, 0x218
jb 0x436050
mov dword [0x52f408], edi
jmp 0x4360a2
cmp byte [ebp - 0x21], 0
je 0x4360e0
lea eax, [edi + 2]
push eax
lea ecx, [ebp - 0x58]
call fcn.004361b0
mov esi, dword [ebp - 0x58]
mov word [esi + edi], 0
cmp byte [ebp - 0x21], 0
je 0x4360e0
push esi
lea ecx, [ebp - 0x30]
call fcn.00403720
mov byte [ebp - 4], 0x31
mov edi, dword [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00403880
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 0x436139
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x436139
mov eax, dword [0x52a6d0]
mov ecx, 0x52a6d0
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.00404510
mov byte [ebp - 4], 0x33
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
call fcn.00403880
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 0x436130
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, edi
mov ecx, edi
call fcn.00432a90
test esi, esi
je 0x435df0
push esi
call fcn.004b3a0c
add esp, 4
jmp 0x435df0