Function at 0x416920
Capabilities:
Get file size
Read .ini file
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetActiveWindow]
push edi
call esi
mov ebp, eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x281]
mov byte [esp + 0x280], 0
mov ebx, 5
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
push eax
call fcn.004017b0
add esp, 4
call esi
mov edx, dword [str.INI_files]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x280]
push eax
mov dword [esp + 0x64], 0x1804
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x60], str.Select_split_data_file...
call sub.comdlg32.dll_GetOpenFileNameA
test eax, eax
je 0x416ccf
mov eax, dword [str.SplitInfo]
lea ecx, [esp + 0x280]
push ecx
lea edx, [esp + 0x7c]
push 0x104
push edx
push 0
push str.HEADER
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x416c92
mov al, byte [esp + 0x78]
test al, al
je 0x416c92
push 0x10000
call fcn.00401a60
mov edi, eax
add esp, 4
test edi, edi
jne 0x4169f4
mov esi, 2
jmp 0x416cb5
lea ecx, [esp + 0x78]
push 0
push ecx
call fcn.00416ce0
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x416cb0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea edx, [esp + 0x24]
mov ebx, eax
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
mov esi, eax
test esi, esi
jne 0x416a55
push str.Header_has_no_PE_format__
push ebp
call fcn.004043a0
add esp, 8
mov esi, 5
jmp 0x416cb5
mov eax, dword [esi + 0x3c]
push ebx
push eax
call fcn.00415bc0
add esp, 8
mov ebx, eax
xor eax, eax
mov dword [esp + 0x10], ebx
mov dword [esi + 0x54], ebx
mov dword [esp + 0x14], ebx
mov word [esi + 6], ax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x7c]
push str.SECTION_d
push edx
call ebp
add esp, 0xc
lea eax, [esp + 0x280]
lea ecx, [esp + 0x17c]
lea edx, [esp + 0x78]
push eax
mov eax, dword [str.SplitInfo]
push 0x104
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x416bb0
lea ecx, [esp + 0x17c]
push 0
push ecx
call fcn.00416ce0
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x416cb0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi + 0x3c]
push eax
push edx
mov dword [esp + 0x30], eax
call fcn.00415bc0
mov ebx, eax
mov eax, dword [esp + 0x18]
add eax, ebx
push eax
push edi
mov dword [esp + 0x20], eax
call fcn.00401a70
mov edi, eax
add esp, 0x10
test edi, edi
je 0x416b8f
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x24]
push 0
push eax
add edx, edi
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.IMAGEHLP.dll_ImageNtHeader]
mov esi, eax
test esi, esi
je 0x416ba6
mov ecx, dword [esp + 0x20]
xor eax, eax
mov ax, word [esi + 0x14]
add eax, ecx
lea edx, [eax + esi + 0x18]
mov eax, dword [esp + 0x14]
mov dword [edx + 0x14], eax
add eax, ebx
mov dword [edx + 0x10], ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
inc ebx
inc edx
add ecx, 0x28
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], ecx
jmp 0x416a85
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x478
ret
mov esi, 3
jmp 0x416cb5
mov cx, word [esp + 0x18]
lea edx, [esp + 0x280]
mov word [esi + 6], cx
mov ecx, dword [0x41b1c0]
push edx
mov edx, dword [str.SplitInfo]
lea eax, [esp + 0x7c]
push 0x104
push eax
push ecx
push str.ORG_EXT
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x78]
test al, al
je 0x416c33
lea eax, [esp + 0x78]
push 0
push eax
lea ecx, [esp + 0x80]
push 0
push ecx
lea edx, [esp + 0x394]
push str._s_c_s_c
push edx
call ebp
lea ecx, [esp + 0x90]
lea edx, [esp + 0x194]
push ecx
lea eax, [esp + 0x3a0]
push str.unsplitted_s
push edx
mov dword [esp + 0x5c], eax
call ebp
add esp, 0x24
jmp 0x416c4f
mov eax, dword [str..exe__.dll__.dmp]
lea ecx, [esp + 0x17c]
push str.unsplitted
push ecx
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x2c]
lea edx, [esp + 0x17c]
push eax
mov dword [esp + 0x64], 6
mov dword [esp + 0x4c], edx
mov dword [esp + 0x60], str.Save_file_image_to...
call sub.comdlg32.dll_GetSaveFileNameA
test eax, eax
je 0x416c8e
lea ecx, [esp + 0x17c]
push ecx
push ebx
push edi
call fcn.00406830
add esp, 0xc
test eax, eax
je 0x416cb0
xor esi, esi
jmp 0x416cb5
push str.No_split_data_file__
push ebp
call fcn.004043a0
add esp, 8
mov eax, 5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
mov esi, 1
test edi, edi
je 0x416cc2
push edi
call fcn.00401a90
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x478
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x478
ret