Function at 0x462650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587832
mov eax, dword fs:[0]
push eax
sub esp, 0x37c
mov eax, dword [0x5ed80c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x378], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x154]
push edx
mov dword [ebp - 0x388], eax
call fcn.00407200
mov esi, eax
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [ebp - 0x370], eax
push esi
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x370]
call fcn.004020b0
mov ebx, 0x10
cmp dword [eax + 0x14], ebx
jb 0x4626ce
mov eax, dword [eax]
push 0x5a3790
push eax
call fcn.0055e8df
add esp, 8
mov esi, eax
cmp dword [ebp - 0x15c], ebx
jb 0x4626f5
mov ecx, dword [ebp - 0x170]
push ecx
call fcn.0055ae44
add esp, 4
cmp dword [ebp - 0x140], 8
mov dword [ebp - 0x15c], 0xf
mov dword [ebp - 0x160], edi
mov byte [ebp - 0x170], 0
mov dword [ebp - 4], 0xffffffff
jb 0x46272b
mov edx, dword [ebp - 0x154]
push edx
call fcn.0055ae44
add esp, 4
xor ecx, ecx
mov eax, 7
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x144], edi
mov word [ebp - 0x154], cx
cmp esi, edi
jne 0x4627ab
push 0x13
xor edx, edx
push 0x5a3768
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x144], edi
mov word [ebp - 0x154], dx
call fcn.00401c40
push 1
push str.opera::import_settings::parse_wand_file
push str.Opera.cpp
push 0x89
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 1
call fcn.004fa350
push 0x5cd608
lea ecx, [ebp - 0x1ec]
push ecx
call fcn.0055b802
push 2
push edi
push esi
call fcn.0055e5e4
push esi
call fcn.0055e4f5
mov ebx, eax
push ebx
mov dword [ebp - 0x370], ebx
call fcn.0055d61e
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x37c], edi
push esi
test edi, edi
jne 0x462846
call fcn.0055caa5
add esp, 4
push 0x18
xor edx, edx
push str.Memory_allocation_failed
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x140], 7
mov dword [ebp - 0x144], edi
mov word [ebp - 0x154], dx
call fcn.00401c40
push 1
push str.opera::import_settings::parse_wand_file
push str.Opera.cpp
push 0x95
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x1ec]
mov dword [ebp - 4], 2
call fcn.004fa350
push 0x5cd608
lea ecx, [ebp - 0x1ec]
push ecx
call fcn.0055b802
call fcn.0055e765
push esi
push 1
push ebx
push edi
call fcn.0055e344
push esi
call fcn.0055caa5
xor esi, esi
add esp, 0x18
xor eax, eax
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x15c], esi
mov dword [ebp - 4], 3
cmp ebx, esi
jbe 0x462c0b
jmp 0x46288b
mov eax, dword [ebp - 0x374]
mov edx, ebx
sub edx, eax
push edx
add eax, edi
push 8
push eax
call fcn.0055cb20
mov esi, eax
add esp, 0xc
test esi, esi
je 0x462c09
lea edx, [esi + 1]
sub edx, edi
lea eax, [esi - 7]
mov dword [ebp - 0x374], edx
lea ecx, [esi + 9]
cmp eax, edi
jb 0x462c01
add ebx, edi
cmp ecx, ebx
ja 0x462bfb
movzx edx, byte [eax]
movzx ebx, byte [eax + 1]
shl ebx, 0x10
shl edx, 0x18
or edx, ebx
movzx ebx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ebx, 8
or edx, ebx
movzx ebx, byte [ecx]
or edx, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
movzx eax, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl eax, 8
or ebx, eax
or ebx, ecx
lea eax, [ebx + 0x10]
cmp edx, eax
jne 0x462bf5
mov ecx, dword [ebp - 0x370]
sub ecx, dword [ebp - 0x374]
sub ecx, 0xc
cmp ebx, ecx
ja 0x462bf5
cmp ebx, 8
jb 0x462bf5
test bl, 7
jne 0x462bf5
mov edx, dword [0x5a3378]
movzx ecx, word [0x5a3380]
mov eax, dword [0x5a337c]
mov dword [ebp - 0x138], edx
movzx edx, byte [0x5a3382]
mov byte [ebp - 0x12e], dl
mov dword [ebp - 0x134], eax
mov word [ebp - 0x130], cx
mov eax, dword [esi + 1]
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x12d], eax
mov ecx, dword [esi + 5]
lea eax, [ebp - 0x138]
push 0x13
push eax
mov dword [ebp - 0x129], ecx
call fcn.004e9590
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x134], edx
mov edx, dword [0x5a3378]
mov dword [ebp - 0x138], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x128], edx
movzx edx, byte [0x5a3382]
mov dword [ebp - 0x12c], ecx
movzx ecx, word [0x5a3380]
mov dword [ebp - 0x130], eax
mov eax, dword [0x5a337c]
mov byte [ebp - 0x11e], dl
mov dword [ebp - 0x124], eax
mov word [ebp - 0x120], cx
mov eax, dword [esi + 1]
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x11d], eax
mov ecx, dword [esi + 5]
lea eax, [ebp - 0x138]
push 0x23
push eax
mov dword [ebp - 0x119], ecx
call fcn.004e9590
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.004e8fc0
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004e8fc0
lea edx, [ebp - 0x2ec]
push edx
lea eax, [ebp - 0x38]
push eax
call fcn.004e8fc0
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x2ec]
push ecx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x36c]
push edx
lea eax, [ebp - 0x26c]
push eax
add esi, 0xd
push ebx
push esi
push esi
call fcn.004e8580
mov al, byte [esi]
add esp, 0x50
test al, al
je 0x462ac1
cmp al, 8
je 0x462ac1
movzx ecx, byte [esi + ebx - 1]
lea eax, [esi + ebx - 1]
push ecx
sub eax, ecx
inc eax
push 0
push eax
call fcn.0055bc50
add esp, 0xc
push esi
lea ecx, [ebp - 0x18c]
call fcn.00401ec0
push eax
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 5
call fcn.0045f6e0
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 3
call fcn.00413b90
jmp 0x462be5
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.Opera.cpp
lea ecx, [ebp - 0x380]
push ecx
mov ecx, 0x5f1460
mov dword [ebp - 0x384], eax
call fcn.00506650
mov esi, eax
mov ecx, dword [esi]
push 0x59d37c
mov byte [ebp - 4], 4
call fcn.00506510
push eax
call fcn.0040b260
mov ecx, dword [esi]
add esp, 8
push 0xfe
call fcn.00506510
mov ecx, eax
call fcn.0040bb90
mov ecx, dword [esi]
push 0x59d378
call fcn.00506510
push eax
call fcn.0040b260
mov edx, dword [ebp - 0x384]
mov ecx, dword [esi]
add esp, 8
push edx
call fcn.00506510
mov ecx, eax
call fcn.0043e160
mov ecx, dword [esi]
push 0x59d374
call fcn.00506510
push eax
call fcn.0040b260
mov ecx, dword [esi]
add esp, 8
push edi
call fcn.00506510
mov ecx, eax
call fcn.0043e160
mov ecx, dword [esi]
push 0x59d370
call fcn.00506510
push eax
call fcn.0040b260
mov ecx, dword [esi]
add esp, 8
push str.opera::import_settings::parse_wand_file
call fcn.00506510
push eax
call fcn.0040b260
mov ecx, dword [esi]
add esp, 8
push 0x59c870
call fcn.00506510
push eax
call fcn.0040b260
mov ecx, dword [esi]
add esp, 8
push str._tINFO_:
call fcn.00506510
push eax
call fcn.0040b260
add esp, 8
push 0x5a36fc
mov ecx, esi
call fcn.0042a0c0
mov ecx, dword [ebp - 0x380]
mov byte [ebp - 4], 3
call fcn.00506510
push eax
call fcn.0040ceb0
mov edi, dword [ebp - 0x37c]
add esp, 4
mov eax, dword [ebp - 0x374]
lea ecx, [eax + ebx + 0xc]
mov dword [ebp - 0x374], ecx
mov edx, dword [ebp - 0x374]
mov ebx, dword [ebp - 0x370]
cmp edx, ebx
jb 0x462885
xor esi, esi
push edi
call fcn.0055be2e
mov edx, dword [ebp - 0x388]
mov ecx, dword [ebp - 0x378]
add esp, 4
push edx
lea eax, [ebp - 0x164]
push eax
call fcn.00460bf0
mov edi, dword [ebp - 0x164]
cmp edi, esi
je 0x462c5b
mov ecx, dword [ebp - 0x378]
mov eax, dword [ebp - 0x160]
push ecx
lea edx, [ebp - 0x158]
push edx
push eax
push edi
call fcn.00444a80
push edi
call fcn.0055ae44
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055bc32
mov esp, ebp
pop ebp
ret 8