Function at 0x41f2b0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x32cf8
call fcn.00481410
mov eax, dword [0x4bacc0]
xor eax, esp
mov dword [esp + 0x32cf4], eax
mov eax, dword [esp + 0x32d00]
mov ecx, dword [esp + 0x32d04]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push ebp
push esi
mov esi, dword [esp + 0x32d08]
push edi
lea edx, [esp + 0x1a4]
push edx
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x30], 0
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f32b
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x504]
push eax
xor ebp, ebp
call fcn.0046fa00
add esp, 4
mov ebx, 1
jmp 0x41f73e
mov ecx, dword [esp + 0x1c0]
push 1
push 0
push 0
push ecx
call fcn.004814c0
mov ecx, dword [esp + 0x1c4]
xor ebp, ebp
add eax, ecx
adc edx, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
add eax, 0x3ff
adc edx, ebp
mov ebp, eax
shrd ebp, edx, 0xa
push edi
mov dword [esp + 0x1c], ebp
shr edx, 0xa
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x64]
push edx
push eax
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x41f3b6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x304]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f390
lea ecx, [esp + 0x504]
push ecx
call fcn.0046fa00
add esp, 4
mov ebx, 2
jmp 0x41f73e
mov edx, dword [esp + 0x80]
push 1
push 0
push 0
push edx
call fcn.004814c0
mov ebx, eax
mov eax, dword [esp + 0x84]
xor ecx, ecx
mov ebp, edx
add ebx, eax
push edi
adc ebp, ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x20], ebx
jne 0x41f3ed
cmp dword [esp + 0x24], ebp
je 0x41f438
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x304]
sub edx, eax
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f400
push 0xbd
call fcn.0046d6b0
add esp, 4
lea edx, [esp + 0x504]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x41f420
mov ebx, 3
jmp 0x41f73a
mov ebx, dword [esp + 0x38]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x41f496
lea edx, [esp + 0x304]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f470
lea edx, [esp + 0x504]
push edx
call fcn.0046fa00
add esp, 4
mov ebx, 1
jmp 0x41f73a
mov ebx, dword [esp + 0x10]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x41f4f1
lea edx, [esp + 0x304]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f4c0
lea eax, [esp + 0x504]
push eax
call fcn.0046fa00
mov ecx, dword [esp + 0x20]
add esp, 4
push ecx
mov ebx, 2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f73a
cmp dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
jb 0x41f6b2
ja 0x41f510
cmp dword [esp + 0x20], ebp
jbe 0x41f6b2
nop
mov ebx, dword [esp + 0x20]
sub ebx, ebp
cmp ebx, 0x19000
jbe 0x41f523
mov ebx, 0x19000
mov eax, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x30]
push ecx
push ebx
lea edx, [esp + 0xd10]
push edx
push eax
call edi
test eax, eax
je 0x41f968
cmp dword [esp + 0x2c], ebx
jne 0x41f968
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x30]
push ecx
push ebx
lea edx, [esp + 0x19d10]
push edx
push eax
call edi
test eax, eax
je 0x41f926
cmp dword [esp + 0x2c], ebx
jne 0x41f926
xor edi, edi
test ebx, ebx
jbe 0x41f59c
mov cl, byte [esp + edi + 0xd04]
cmp cl, byte [esp + edi + 0x19d04]
jne 0x41f86c
add edi, 1
cmp edi, ebx
jb 0x41f581
lea edx, [ebx + 0x3ff]
shl edx, 0xa
shr edx, 0x14
add dword [esi + 0x9a8], edx
mov eax, dword [esi + 0x9a8]
push 0
push eax
mov eax, dword [esi + 0x1a0]
push 0x402
push 0x407
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esi + 0x9a8]
imul eax, eax, 0x64
cdq
idiv dword [esi + 0x9ac]
mov edi, eax
cmp edi, dword [esi + 0x16c]
je 0x41f651
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esi + 0xac]
push ecx
push edi
lea edx, [esp + 0x40c]
push str._2d____s
push edx
mov dword [esi + 0x16c], edi
call ebp
mov ecx, dword [esi + 0x18]
add esp, 0x10
lea eax, [esp + 0x404]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
lea edx, [esp + 0x408]
push str._2d__
push edx
call ebp
mov ecx, dword [esi + 0x1a0]
add esp, 0xc
lea eax, [esp + 0x404]
push eax
push 0x474
push ecx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x28]
mov eax, 0x51eb851f
mul edi
shr edx, 5
imul edx, edx, 0x64
mov eax, edi
sub eax, edx
je 0x41f66c
push 0
jmp 0x41f66e
push 1
call fcn.00432430
cmp dword [esi + 0x6dc], 0
jne 0x41f908
mov eax, dword [esp + 0x34]
add ebp, ebx
adc eax, 0
add edi, 1
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edi
jb 0x41f510
ja 0x41f6ae
cmp ebp, dword [esp + 0x20]
jb 0x41f510
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
cmp dword [esp + 0x32d18], 0
je 0x41f9c3
mov ecx, dword [esp + 0x1bc]
cmp ecx, dword [esp + 0x7c]
jne 0x41f6fc
mov eax, dword [esp + 0x1b8]
sub eax, dword [esp + 0x78]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x989680
jle 0x41f9c3
lea edx, [esp + 0x304]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f707
push 0xbf
call fcn.0046d6b0
add esp, 4
lea edx, [esp + 0x504]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x41f727
mov ebx, 5
mov ebp, dword [esp + 0x18]
mov edx, dword [esi + 0x9b0]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0x3c]
push ecx
push 0
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x19c]
push 0x1007
lea eax, [esp + 0x310]
push edx
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], eax
call edi
mov ecx, dword [esi + 0x9b0]
mov eax, 1
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x3c]
push eax
push 0
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0x19c]
push 0x1006
lea edx, [esp + 0x510]
push ecx
mov dword [esp + 0x60], edx
call edi
sub ebp, dword [esp + 0x28]
mov edx, dword [esi + 0x1a0]
add dword [esi + 0x9a8], ebp
mov eax, dword [esi + 0x9a8]
add dword [esi + 0x9b0], 1
push 0
push eax
push 0x402
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov eax, dword [esi + 0x9a8]
imul eax, eax, 0x64
cdq
idiv dword [esi + 0x9ac]
mov edi, eax
cmp edi, dword [esi + 0x16c]
je 0x41f865
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esi + 0xac]
push eax
push edi
lea ecx, [esp + 0x40c]
push str._2d____s
push ecx
mov dword [esi + 0x16c], edi
call ebp
mov eax, dword [esi + 0x18]
add esp, 0x10
lea edx, [esp + 0x404]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
push edi
lea ecx, [esp + 0x408]
push str._2d__
push ecx
call ebp
mov eax, dword [esi + 0x1a0]
add esp, 0xc
lea edx, [esp + 0x404]
push edx
push 0x474
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, ebx
jmp 0x41f9c5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x304]
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f880
movzx ecx, byte [esp + edi + 0xd04]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push ecx
lea edx, [esp + 0x2e8]
push str.0x_02X
push edx
call ebx
movzx eax, byte [esp + edi + 0x19d10]
push eax
lea ecx, [esp + 0x304]
push str.0x_02X
push ecx
call ebx
lea edx, [esp + 0x2fc]
push edx
lea eax, [esp + 0x310]
push eax
add ebp, edi
push ebp
push 0xbe
call fcn.0046d6b0
add esp, 0x28
lea edx, [esp + 0x504]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x41f8f0
mov ebx, 4
jmp 0x41f9a8
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, 0xa
jmp 0x41f9c5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x304]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f933
push 0xc0
call fcn.0046d6b0
add esp, 4
lea edx, [esp + 0x504]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x41f953
mov ebx, 2
jmp 0x41f9a8
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x304]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41f975
push 0xc0
call fcn.0046d6b0
add esp, 4
lea edx, [esp + 0x504]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x41f995
mov ebx, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f73a
xor eax, eax
mov ecx, dword [esp + 0x32d04]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004810ab
add esp, 0x32cf8
ret