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

Disassembly:
push 0xffffffffffffffff
push 0x1005044b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x10063790]
xor eax, esp
mov dword [esp + 0x454], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10063790]
xor eax, esp
push eax
lea eax, [esp + 0x46c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x206
lea eax, [esp + 0x66]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [esp + 0x2c], edi
mov word [esp + 0x6c], bx
call fcn.1003d360
add esp, 0xc
push ebx
push 0x10057090
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
call fcn.10001bf0
push 0x1ff
lea ecx, [esp + 0x26d]
mov dword [esp + 0x478], ebx
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x274], bl
call fcn.1003d360
add esp, 0xc
xor eax, eax
push ebx
push 0x10057090
mov ecx, edi
mov byte [esp + 0x48], bl
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call fcn.10001bf0
cmp dword [esi + 0x18], ebx
je 0x100258ea
mov edi, 8
cmp dword [esi + 0x1c], edi
jb 0x1002587c
mov eax, dword [esi + 8]
jmp 0x1002587f
lea eax, [esi + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10025882
sub eax, edx
sar eax, 1
cmp eax, 3
jne 0x100258c5
cmp dword [esi + 0x18], ebx
ja 0x100258a0
call fcn.1003bd8d
cmp dword [esi + 0x1c], edi
jb 0x100258aa
mov eax, dword [esi + 8]
jmp 0x100258ad
lea eax, [esi + 8]
movzx edx, word [eax]
push edx
push str.._c:
push 0x104
lea eax, [esp + 0x6c]
push eax
jmp 0x1002599f
cmp dword [esi + 0x1c], edi
jb 0x100258cf
mov eax, dword [esi + 8]
jmp 0x100258d2
lea eax, [esi + 8]
push eax
lea ecx, [esp + 0x64]
push 0x104
push ecx
call fcn.1003e374
add esp, 0xc
jmp 0x100259a7
cmp dword [esi + 0x34], ebx
je 0x10025948
cmp dword [esi + 0x38], 8
jb 0x100258fa
mov eax, dword [esi + 0x24]
jmp 0x100258fd
lea eax, [esi + 0x24]
push eax
lea edx, [esp + 0x64]
push 0x104
push edx
call fcn.1003e374
lea eax, [esp + 0x6c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10025917
sub eax, edx
sar eax, 1
cmp eax, 1
jbe 0x100259a7
lea eax, [esp + 0x60]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10025932
sub eax, edx
sar eax, 1
mov word [esp + eax*2 + 0x5e], bx
jmp 0x100259a7
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x40]
push eax
push ecx
call fcn.10024f60
movzx eax, ax
cmp ax, 0x2e
mov dword [esp + 0x18], eax
jne 0x10025984
cmp dword [esp + 0x3c], 8
mov dword [esi + 0x50], 0x10000101
jb 0x1002597d
mov edx, dword [esp + 0x28]
push edx
call fcn.1003c1aa
add esp, 4
xor eax, eax
jmp 0x10025b4d
movzx eax, ax
push eax
push str.._c:
push 0x104
lea ecx, [esp + 0x6c]
mov dword [esp + 0x20], 1
push ecx
call fcn.1003cd26
add esp, 0x10
xor eax, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], al
call fcn.100254c0
test eax, eax
jne 0x100259c6
xor edi, edi
jmp 0x100259ec
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x100259d5
lea eax, [esp + 0x28]
push 0x10056f04
push eax
call fcn.1003c8ff
add esp, 8
mov edi, eax
neg edi
sbb edi, edi
add edi, 1
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10025afb
push ebx
lea eax, [esp + 0x20]
push eax
push 0x200
lea ecx, [esp + 0x274]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10025ae7
cmp edi, ebx
push 8
je 0x10025a47
lea edx, [esp + 0x45c]
push edx
push 8
lea eax, [esp + 0x4c]
push eax
jmp 0x10025a56
lea ecx, [esp + 0x26f]
push ecx
push 8
lea edx, [esp + 0x4c]
push edx
call fcn.1003c1af
xor eax, eax
add esp, 0x10
push 0xa
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov dword [esp + 0x5a], eax
mov dword [esp + 0x5e], eax
mov word [esp + 0x62], ax
lea eax, [esp + 0x50]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
mov word [esp + 0x64], bx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10025a97
mov esi, dword [esp + 0x20]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.10001bf0
cmp dword [esi + 0x18], 8
jb 0x10025ac2
mov eax, dword [esi + 4]
jmp 0x10025ac5
lea eax, [esi + 4]
push eax
push str.OEMID:__s
call fcn.10030090
push eax
call fcn.1002f970
add esp, 0xc
push ebp
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10025b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
push ebp
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10025b06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x50], eax
xor esi, esi
cmp dword [esp + 0x14], ebx
je 0x10025b37
movzx eax, word [esp + 0x18]
push eax
push 0x10058458
lea ecx, [esp + 0x68]
push 0x104
push ecx
call fcn.1003cd26
add esp, 0x10
push ebx
lea edx, [esp + 0x64]
push edx
push 3
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
cmp dword [esp + 0x3c], 8
jb 0x10025b4b
mov eax, dword [esp + 0x28]
push eax
call fcn.1003c1aa
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x46c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x454]
xor ecx, esp
call fcn.1003c13d
add esp, 0x464
ret