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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4731bd
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x4899f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x11c], 0
push 0x104
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.004472f0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x445c1a
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x445c1a
push 0x105
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x445c6e
push 0x105
lea edx, [ebp - 0x11c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea eax, [ebp - 0x11c]
push eax
call fcn.0040aa63
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x445c58
mov ecx, dword [ebp - 0x128]
mov byte [ecx + 1], 0
push str.Label.dat
push 0x105
lea edx, [ebp - 0x11c]
push edx
call fcn.004031d0
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x446226
mov dword [ebp - 0x130], 0
push 0
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x12c], eax
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
call fcn.00443ea2
add esp, 4
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x12c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x138]
push edx
call fcn.004472f0
add esp, 0xc
mov eax, dword [ebp - 0x12c]
add eax, 1
push eax
call fcn.00443ea2
add esp, 4
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x134], ecx
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 0x134]
push eax
call fcn.004472f0
add esp, 0xc
cmp dword [ebp - 0x138], 0
je 0x446219
cmp dword [ebp - 0x134], 0
je 0x446219
push 0
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
mov eax, dword [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x446219
mov edx, dword [ebp - 0x138]
push edx
mov eax, dword [ebp - 0x12c]
add eax, 1
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.0040c540
add esp, 0xc
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.USER32.dll_CharUpperA]
push 0x4795f4
mov eax, dword [ebp - 0x134]
push eax
call fcn.00446e10
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x445e82
cmp dword [ebp + 0x10], 0
je 0x445e82
push str._nSN
call fcn.004482c0
add esp, 4
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x140], 0
jmp 0x445e1c
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
mov edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x140]
movsx eax, byte [edx]
test eax, eax
je 0x445e76
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x140]
movsx edx, byte [ecx]
push edx
push 0x479604
call fcn.00448a80
add esp, 8
test eax, eax
jne 0x445e76
mov eax, dword [ebp - 0x140]
cmp eax, dword [ebp + 0x1c]
jge 0x445e76
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x140]
mov edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x140]
mov al, byte [edx]
mov byte [ecx], al
jmp 0x445e0d
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x140]
mov byte [ecx], 0
push 0x47960c
mov edx, dword [ebp - 0x134]
push edx
call fcn.00446e10
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x445f57
cmp dword [ebp + 0x14], 0
je 0x445f57
push str._nID
call fcn.004482c0
add esp, 4
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x144], 0
jmp 0x445ef1
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x144]
movsx edx, byte [ecx]
test edx, edx
je 0x445f4b
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x144]
movsx ecx, byte [eax]
push ecx
push 0x47961c
call fcn.00448a80
add esp, 8
test eax, eax
jne 0x445f4b
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp + 0x1c]
jge 0x445f4b
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x144]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x445ee2
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x144]
mov byte [eax], 0
push 0x479624
mov ecx, dword [ebp - 0x134]
push ecx
call fcn.00446e10
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x44602c
cmp dword [ebp + 0x18], 0
je 0x44602c
push str._nACTIONID
call fcn.004482c0
add esp, 4
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x148], 0
jmp 0x445fc6
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x148]
movsx ecx, byte [eax]
test ecx, ecx
je 0x446020
mov edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x148]
movsx eax, byte [edx]
push eax
push str._r_n_b
call fcn.00448a80
add esp, 8
test eax, eax
jne 0x446020
mov ecx, dword [ebp - 0x148]
cmp ecx, dword [ebp + 0x1c]
jge 0x446020
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x148]
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x148]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x445fb7
mov edx, dword [ebp + 0x18]
add edx, dword [ebp - 0x148]
mov byte [edx], 0
push 0x479644
mov eax, dword [ebp - 0x134]
push eax
call fcn.00446e10
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4461d9
cmp dword [ebp + 0xc], 0
je 0x4461d9
push str._nTITLE
call fcn.004482c0
add esp, 4
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x138]
push ecx
mov edx, dword [ebp - 0x12c]
add edx, 1
push edx
mov eax, dword [ebp - 0x134]
push eax
call fcn.0040c540
add esp, 0xc
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x150], 0
jmp 0x4460bb
mov ecx, dword [ebp - 0x150]
add ecx, 1
mov dword [ebp - 0x150], ecx
mov edx, dword [ebp - 0x13c]
add edx, dword [ebp - 0x150]
movsx eax, byte [edx]
test eax, eax
je 0x44610a
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x150]
movsx edx, byte [ecx]
push edx
push 0x479654
call fcn.00448a80
add esp, 8
test eax, eax
jne 0x44610a
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x13c]
add ecx, dword [ebp - 0x150]
mov dl, byte [ecx]
mov byte [eax], dl
jmp 0x4460ac
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x150]
mov byte [eax], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x14c]
call fcn.00405ec0
mov dword [ebp - 4], 0
push 0x479262
push 0x479658
lea ecx, [ebp - 0x14c]
call fcn.00446e30
push 0x479263
push 0x479660
lea ecx, [ebp - 0x14c]
call fcn.00446e30
push 0x47926a
push 0x47966c
lea ecx, [ebp - 0x14c]
call fcn.00446e30
push 0x47926b
push 0x479674
lea ecx, [ebp - 0x14c]
call fcn.00446e30
push 0x479272
push 0x47967c
lea ecx, [ebp - 0x14c]
call fcn.00446e30
lea ecx, [ebp - 0x14c]
call fcn.0041f020
lea ecx, [ebp - 0x14c]
call fcn.00406160
mov edx, dword [ebp - 0x14c]
push edx
push 0x479684
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401920
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.00420c40
mov dword [ebp - 0x120], 1
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x15c], edx
mov eax, dword [ebp - 0x15c]
push eax
call fcn.0044720c
add esp, 4
mov ecx, dword [ebp - 0x134]
mov dword [ebp - 0x160], ecx
mov edx, dword [ebp - 0x160]
push edx
call fcn.0044720c
add esp, 4
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004472d8
mov esp, ebp
pop ebp
ret