Function at 0x419540
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x83bc
call fcn.005865a0
mov eax, dword [0x65ada4]
xor eax, esp
mov dword [esp + 0x83b8], eax
push ebx
mov ebx, dword [esp + 0x83c8]
push ebp
push esi
mov esi, dword [esp + 0x83d8]
xor ebp, ebp
push edi
mov edi, dword [esp + 0x83d0]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0x4195e9
push ebx
push str.WRBLOB_File_s_n
call fcn.00575440
mov eax, dword [0x6233dc]
add esp, 8
cmp byte [esp + 0x83e8], 0
jne 0x41963f
cmp eax, 0xffffffff
je 0x41964d
mov esi, dword [esp + 0x83e0]
cmp esi, 0xffffffff
je 0x4196ad
push ebp
push esi
push eax
call sub.MSVCR90.dll__lseek
add esp, 0xc
cmp esi, eax
je 0x4196a2
push ebx
mov edi, 0xe4d
push 0x2ee1
push edi
call fcn.00406f10
add esp, 0xc
jmp 0x4197f2
push str.WRBLOB_Finale_n
call fcn.00575440
mov eax, dword [0x6233dc]
add esp, 4
cmp eax, 0xffffffff
je 0x419609
push eax
call sub.MSVCR90.dll__close
add esp, 4
push edi
mov dword [0x6233dc], 0xffffffff
call fcn.00424f10
add esp, 4
cmp eax, ebp
jne 0x419629
push edi
call fcn.004188d0
add esp, 4
mov ecx, dword [edi + 0x301]
mov dword [esi], ecx
mov edx, dword [edi + 0x305]
mov dword [esi + 4], edx
jmp 0x419835
cmp eax, 0xffffffff
je 0x41964d
push eax
call sub.MSVCR90.dll__close
add esp, 4
mov ecx, dword [0x5b46ac]
mov edx, dword [ecx + 0x343]
push ebp
push 0x401
lea eax, [esp + 0x2c]
push eax
push ebx
push edx
call fcn.00570a60
push ebp
lea eax, [esp + 0x3c]
push ebp
push eax
call fcn.0056d7f0
add esp, 0x20
mov dword [0x6233dc], eax
cmp eax, 0xffffffff
jne 0x4195ad
push ebp
push ebx
mov edi, 0x71a
push 0x2ee1
push edi
call fcn.00406f10
add esp, 0x10
jmp 0x4197f2
mov eax, dword [0x6233dc]
mov dword [esp + 0x18], esi
jmp 0x4196b1
mov dword [esp + 0x18], ebp
mov ebx, dword [esp + 0x83e4]
cmp ebx, 0xffffffff
je 0x4196c7
mov edi, ebx
cmp ebx, 0x7fa0
jb 0x4196cc
mov edi, 0x7fa0
mov ebp, dword [sym.imp.MSVCR90.dll__read]
push edi
lea ecx, [esp + 0x42c]
push ecx
push eax
call ebp
mov esi, eax
add esp, 0xc
cmp esi, 0x7fa0
jne 0x41975f
jmp 0x4196f0
mov ecx, dword [esp + 0x83d8]
add dword [esp + 0x10], 0x7fa0
lea edx, [esp + 0x14]
push edx
push 0x7fa0
lea eax, [esp + 0x430]
push eax
push ecx
call fcn.00423e80
add esp, 0x10
test eax, eax
jne 0x419796
cmp dword [esp + 0x14], 0x7fa0
jne 0x419796
cmp ebx, 0xffffffff
je 0x419741
mov eax, ebx
sub eax, dword [esp + 0x10]
mov edi, eax
cmp eax, 0x7fa0
jb 0x419741
mov edi, 0x7fa0
mov eax, dword [0x6233dc]
push edi
lea edx, [esp + 0x42c]
push edx
push eax
call ebp
mov esi, eax
add esp, 0xc
cmp esi, 0x7fa0
je 0x4196f0
test esi, esi
je 0x4197c7
cmp esi, 0xffffffff
je 0x4197ab
mov eax, dword [esp + 0x83d8]
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x430]
push edx
push eax
add edi, esi
call fcn.00423e80
add esp, 0x10
test eax, eax
jne 0x419796
cmp esi, dword [esp + 0x14]
je 0x4197cb
mov ecx, dword [esp + 0x14]
push ecx
push esi
push 1
mov edi, 0x736
push 0x2ee1
push edi
jmp 0x4197ea
mov edx, dword [0x6233dc]
push edx
mov edi, 0x71d
push 0x2ee1
push edi
call fcn.00406f10
add esp, 0xc
jmp 0x4197f2
mov edi, dword [esp + 0x10]
cmp ebx, 0xffffffff
je 0x419822
cmp edi, ebx
je 0x419822
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
mov edi, 0xf4d
push 0x2ee1
push edi
call fcn.00406f10
add esp, 0x14
mov eax, dword [0x6233dc]
cmp eax, 0xffffffff
je 0x419805
push eax
call sub.MSVCR90.dll__close
add esp, 4
push 0x2ee1
push 0
mov dword [0x6233dc], 0xffffffff
call fcn.00406f10
add esp, 8
mov eax, edi
jmp 0x419835
mov eax, dword [esp + 0x20]
push eax
mov dword [eax + 0xb1a], edi
call fcn.00424e50
add esp, 4
mov ecx, dword [esp + 0x83c8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00586584
add esp, 0x83bc
ret