Function at 0x419270
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x430
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x434]
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x28], edi
mov dword [eax], edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x4192d9
lea eax, [edi + 1]
pop edi
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
push edi
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x40]
push ecx
push esi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x419317
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov eax, 3
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x419342
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov eax, 6
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
cmp eax, 0x20
jbe 0x41938a
mov eax, 0x10
xor ecx, ecx
mov edi, edi
mov edx, dword [esp + ecx + 0x34]
cmp edx, dword [ecx + 0x482cbc]
jne 0x41938a
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x419350
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop edi
mov eax, 0x11
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
mov eax, ebx
mov byte [esp + 0x2c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x419394
sub eax, edx
sar eax, 1
lea ecx, [eax - 1]
cmp ecx, edi
push ebp
jl 0x4193f1
jmp 0x4193b0
cmp word [ebx + ecx*2], 0x2e
je 0x4193be
sub ecx, 1
jns 0x4193b0
jmp 0x4193f1
sub eax, ecx
dec eax
mov ebp, eax
cmp ebp, 7
jg 0x4193f1
xor esi, esi
cmp ebp, edi
jle 0x4193ec
lea edi, [ebx + ecx*2 + 2]
movzx eax, word [edi]
push eax
call fcn.0043364b
mov byte [esp + esi + 0x34], al
inc esi
add esp, 4
add edi, 2
cmp esi, ebp
jl 0x4193d2
xor edi, edi
mov byte [esp + ebp + 0x30], 0
cmp byte [esp + 0x38], 0xd0
mov dword [esp + 0xc], edi
jne 0x419462
cmp byte [esp + 0x39], 0xcf
jne 0x419495
cmp byte [esp + 0x3a], 0x11
jne 0x419495
cmp byte [esp + 0x3b], 0xe0
jne 0x419495
lea ecx, [esp + 0x10]
push ecx
push edi
push edi
push 0x10020
push edi
push ebx
call dword [sym.imp.ole32.dll_StgOpenStorage]
test eax, eax
jne 0x41945e
cmp dword [esp + 0x14], 0x201
jb 0x419462
mov al, byte [esp + 0x239]
cmp al, 0xa5
jne 0x419450
mov dword [esp + 0xc], 3
jmp 0x419462
cmp al, 8
jne 0x419462
mov dword [esp + 0xc], 4
jmp 0x419462
mov dword [esp + 0x10], edi
mov al, byte [esp + 0x38]
cmp al, 0x50
jne 0x41947b
cmp byte [esp + 0x39], 0x4b
jne 0x419495
mov dword [esp + 0xc], 1
jmp 0x419495
cmp al, 0x52
jne 0x419495
cmp byte [esp + 0x39], 0x61
jne 0x419495
cmp byte [esp + 0x3a], 0x72
jne 0x419495
mov dword [esp + 0xc], 2
cmp dword [esp + 0x3c], 0x57504148
jne 0x4194a7
mov dword [esp + 0xc], 9
push 0x1000
call fcn.00431c1f
mov edi, eax
xor ebp, ebp
add esp, 4
cmp edi, ebp
jne 0x4194f4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4194cc
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebp
pop edi
mov eax, 0x10
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
cmp dword [esp + 0xc], ebp
je 0x419590
mov esi, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, dword [esp + 0xc]
cmp dword [ebp + 0x4ad7ec], edx
jne 0x419569
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push eax
push 0x409940
push ecx
mov ecx, dword [esp + 0x1c]
push 0x1000
push edi
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, dword [ebp + 0x4ad7f0]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
call ecx
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x419573
cmp esi, 8
je 0x419569
mov dword [esp + 0x20], 1
add ebp, 8
cmp ebp, 8
jb 0x419510
jmp 0x41957b
mov edx, dword [esp + 0xc]
mov dword [esp + 0x1c], edx
xor ebp, ebp
cmp dword [esp + 0x20], ebp
jne 0x4195e9
cmp dword [esp + 0x1c], ebp
jne 0x4195e9
lea esp, [esp]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
push eax
push 0x409940
push ecx
mov ecx, dword [esp + 0x1c]
push 0x1000
push edi
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
push ecx
mov ecx, dword [ebp*8 + 0x4ad7f0]
push edx
lea eax, [esp + 0x54]
push eax
push ebx
call ecx
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x4195de
cmp esi, 8
jne 0x4195e9
inc ebp
cmp ebp, 1
jb 0x419590
jmp 0x4195e9
mov edx, dword [ebp*8 + 0x4ad7ec]
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4195f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esp + 0x1c], 0
je 0x419647
mov eax, dword [edi]
push eax
push edi
call fcn.004327e4
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword [ecx], eax
test eax, eax
jne 0x419647
push edi
call fcn.00431ac8
add esp, 4
pop ebp
pop edi
mov eax, 0x10
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret
test esi, esi
je 0x419654
push edi
call fcn.00431ac8
add esp, 4
mov ecx, dword [esp + 0x438]
pop ebp
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00431784
add esp, 0x430
ret