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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4ccbf8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor ebx, ebx
test esi, esi
mov dword [ebp - 0xc], ebx
mov eax, 0x4b1aef
mov dword [ebp - 0x14], esi
cmovne eax, esi
mov dword [ebp - 0x1c], ebx
push edi
mov edi, ecx
mov dword [ebp - 0x20], edi
cmp byte [eax], bl
jne 0x410d8e
xor eax, eax
jmp 0x411331
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push esi
call fcn.0041dce0
add esp, 0x1c
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x410f0f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebx
mov dword [ebp - 0x10], esi
call fcn.0048cba0
pop ecx
xor ecx, ecx
add esi, 1
setb cl
neg ecx
or ecx, esi
push ecx
push dword [ebp - 0xc]
call fcn.00483b6d
pop ecx
pop ecx
mov esi, eax
call fcn.0048cb8d
cmp dword [eax], 0xc
jne 0x410e48
call fcn.00435f20
test eax, eax
je 0x410e43
call fcn.00435f20
cmp dword [eax], ebx
je 0x410e43
mov eax, dword [0x4edee0]
test eax, eax
je 0x410e09
mov esi, dword [eax + 0x190]
jmp 0x410e0f
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x410e21
call fcn.00435f20
mov eax, dword [eax]
jmp 0x410e23
mov eax, ebx
mov ecx, str.Error_allocating_memory__
push ecx
push ecx
push dword [0x4edee0]
push esi
push ebx
push 0x17a0
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
mov esi, dword [ebp - 0xc]
jmp 0x410e4b
mov dword [ebp - 0xc], esi
test esi, esi
je 0x41132f
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411316
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jne 0x411316
mov eax, dword [ebp - 0xc]
push str.full_address:s:
mov byte [ecx + eax], bl
push dword [ebp - 0xc]
call fcn.00424010
mov esi, eax
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
test esi, esi
je 0x410e9d
add esi, 0xf
mov dword [ebp - 0x18], esi
push str.username:s:
push dword [ebp - 0xc]
call fcn.00424010
mov dword [ebp - 0x1c], eax
pop ecx
pop ecx
test eax, eax
je 0x410eb9
add eax, 0xb
mov dword [ebp - 0x1c], eax
test esi, esi
mov eax, 0x4b1aef
push 0xd
cmovne eax, esi
push eax
mov dword [ebp - 0x10], eax
call fcn.00480740
pop ecx
pop ecx
test eax, eax
je 0x410ed6
mov byte [eax], bl
push 0xa
push dword [ebp - 0x10]
call fcn.00480740
pop ecx
pop ecx
test eax, eax
je 0x410ee8
mov byte [eax], bl
mov ecx, dword [ebp - 0x1c]
mov eax, 0x4b1aef
test ecx, ecx
push 0xd
cmovne eax, ecx
push eax
mov dword [ebp - 0x10], eax
call fcn.00480740
pop ecx
pop ecx
test eax, eax
je 0x410f08
mov byte [eax], bl
push 0xa
push dword [ebp - 0x10]
jmp 0x410f30
push 6
push str.rdp:__
push esi
call fcn.00486932
add esp, 0xc
test eax, eax
jne 0x411316
add esi, 6
push 0x2f
mov dword [ebp - 0x18], esi
push esi
call fcn.00480740
pop ecx
pop ecx
test eax, eax
je 0x410f3d
mov byte [eax], bl
test esi, esi
je 0x411316
mov ecx, edi
call fcn.00406c66
mov ecx, dword [0x5514ec]
xor edx, edx
mov ecx, dword [ecx + 0x5fc]
jmp 0x410f81
cmp dword [esi + 0x10], ebx
mov eax, 0x4b1aef
push dword [ebp - 0x18]
cmovne eax, dword [esi + 0x10]
push eax
call fcn.00486acf
pop ecx
pop ecx
test eax, eax
je 0x41105e
mov ecx, dword [esi + 0x70]
xor edx, edx
inc edx
call fcn.00406b8f
mov esi, eax
test esi, esi
jne 0x410f5c
push 0x74
call fcn.00486927
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x410fa7
push 0x74
push ebx
push eax
call fcn.004811a0
add esp, 0xc
mov eax, dword [0x5514ec]
cmp dword [eax + 0x5fc], ebx
jne 0x410fe2
push 0x10
call fcn.00486927
pop ecx
mov ecx, eax
mov eax, dword [0x5514ec]
mov dword [eax + 0x5fc], ecx
test ecx, ecx
je 0x410fe2
mov edi, dword [0x5514ec]
xor eax, eax
mov edi, dword [edi + 0x5fc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [0x5514ec]
push ebx
mov eax, dword [eax + 0x5fc]
inc dword [eax]
call fcn.0048cba0
mov eax, dword [0x5514ec]
pop ecx
push 4
xor ecx, ecx
mov esi, dword [eax + 0x5fc]
pop edx
mov eax, dword [esi]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push dword [esi + 4]
call fcn.00483b6d
pop ecx
pop ecx
mov esi, eax
call fcn.0048cb8d
cmp dword [eax], 0xc
jne 0x4111d2
call fcn.00435f20
test eax, eax
je 0x4111e0
call fcn.00435f20
cmp dword [eax], ebx
je 0x4111e0
mov eax, dword [0x4edee0]
test eax, eax
je 0x411196
mov esi, dword [eax + 0x190]
jmp 0x41119c
push 0x4b2e28
push 0x41b
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00436680
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test eax, eax
je 0x411316
push esi
push dword [eax + 0x38]
call fcn.00456600
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
je 0x4110ca
push ebx
push 0xffffffffffffffff
push 0x41b
push edi
call fcn.0044c120
push dword [ebp - 0x10]
call fcn.00456f10
add esp, 0x14
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [esi + 0x28], 2
mov eax, 0x3f5
push ebx
lea ecx, [eax + 0x12]
cmove eax, ecx
push eax
jmp 0x411307
mov eax, dword [0x5514ec]
mov ecx, dword [eax + 0x5e0]
test cl, 8
je 0x411128
and ecx, 0xfffffff7
mov dword [eax + 0x5e0], ecx
mov eax, dword [0x5514ec]
mov eax, dword [eax + 0x5e0]
shr eax, 3
and eax, 1
push eax
push 0x416
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor edx, edx
mov ecx, edi
call fcn.004107cb
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0x38]
call fcn.00456600
mov dword [ebp - 0x10], eax
pop ecx
pop ecx
test eax, eax
jne 0x411094
mov eax, dword [0x5514ec]
mov ecx, dword [eax + 0x5e0]
test cl, 0x10
jne 0x411316
or ecx, 0x10
mov dword [eax + 0x5e0], ecx
mov eax, dword [0x5514ec]
mov eax, dword [eax + 0x5e0]
shr eax, 4
and eax, 1
push eax
push 0x419
push edi
call dword [sym.imp.USER32.dll_CheckDlgButton]
xor edx, edx
mov ecx, edi
call fcn.004107cb
mov eax, dword [ebp - 0x14]
push esi
push dword [eax + 0x38]
call fcn.00456600
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test eax, eax
je 0x411316
push ebx
push 0xffffffffffffffff
push 0x41b
push edi
call fcn.0044c120
push dword [ebp - 0x14]
jmp 0x4110a5
mov esi, dword [0x4edee4]
call fcn.00435f20
test eax, eax
je 0x4111ae
call fcn.00435f20
mov eax, dword [eax]
jmp 0x4111b0
mov eax, ebx
mov ecx, str.Error_allocating_memory__
push ecx
push ecx
push dword [0x4edee0]
push esi
push ebx
push 0x17ec
push str.D:MyProjectsProPilotTestMain.c
push 3
call eax
add esp, 0x20
jmp 0x4111e0
mov eax, dword [0x5514ec]
mov eax, dword [eax + 0x5fc]
mov dword [eax + 4], esi
mov eax, dword [0x5514ec]
mov esi, dword [ebp - 0x10]
push 6
push str.rdp:__
mov eax, dword [eax + 0x5fc]
push dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [eax + ecx*4 - 4], esi
call fcn.00486932
add esp, 0xc
test eax, eax
je 0x411254
push 0x5c
push dword [ebp - 0x14]
call fcn.00480ae0
pop ecx
pop ecx
test eax, eax
je 0x411220
inc eax
jmp 0x411223
mov eax, dword [ebp - 0x14]
push 0x17f2
push str.D:MyProjectsProPilotTestMain.c
push fcn.00483b6d
push ebx
push eax
add esi, 4
push esi
call fcn.0041d090
push 0x2e
push dword [esi]
call fcn.00480ae0
mov esi, dword [ebp - 0x10]
add esp, 0x20
test eax, eax
je 0x411269
mov byte [eax], bl
jmp 0x411269
lea eax, [esi + 4]
push eax
push eax
push eax
push 0x4b1aef
push ebx
push eax
call fcn.00423860
add esp, 0x18
push 0x17f8
push str.D:MyProjectsProPilotTestMain.c
push fcn.00483b6d
push ebx
push dword [ebp - 0x18]
lea eax, [esi + 0x10]
push eax
call fcn.0041d090
push 0x17f9
push str.D:MyProjectsProPilotTestMain.c
push fcn.00483b6d
push ebx
push dword [ebp - 0x1c]
lea eax, [esi + 8]
push eax
call fcn.0041d090
add esp, 0x30
mov dword [esi], ebx
lea ecx, [esi + 0x34]
call fcn.0041558f
xor edx, edx
mov ecx, edi
call fcn.004107cb
push 0x4b2e28
mov esi, 0x41b
push esi
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00436680
mov dword [ebp - 0x20], eax
pop ecx
pop ecx
test eax, eax
je 0x411316
push ebx
push 0xffffffffffffffff
push esi
push edi
call fcn.0044c120
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x38]
call fcn.00456600
push eax
call fcn.00456f10
add esp, 0x1c
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
push 0x405
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xc], 0
je 0x41132f
lea eax, [ebp - 0xc]
push eax
call fcn.0041f010
pop ecx
push dword [ebp - 0xc]
call fcn.0048690c
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f41c
leave
ret