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

Disassembly:
push 0xffffffffffffffff
push 0x4b5c17
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0xfc]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
mov esi, dword [esp + 0x114]
mov edi, dword [esp + 0x118]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x128]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x12c]
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], edx
call fcn.00464220
xor ebp, ebp
mov dword [esp + 0x104], ebp
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], ebx
test bl, 4
je 0x454661
cmp esi, ebp
je 0x454661
push 0x10
push esi
lea ecx, [esp + 0x8c]
push 0x10
push ecx
call fcn.004703a4
add esp, 0x10
xor edx, edx
mov eax, str.SogouComponentAgent
mov word [esp + 0x2c], dx
mov dword [esp + 0x7c], 0x84000000
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x454684
sub eax, edx
sar eax, 1
push eax
mov eax, str.SogouComponentAgent
lea esi, [esp + 0x2c]
call fcn.004065f0
push 0xffffffffffffffff
push ebp
mov eax, esi
lea ecx, [esp + 0x9c]
mov byte [esp + 0x10c], 1
call fcn.00406460
mov ebx, 8
mov byte [esp + 0x104], 0
cmp dword [esp + 0x40], ebx
jb 0x4546db
mov eax, dword [esp + 0x2c]
push eax
call fcn.0046fda3
add esp, 4
mov eax, edi
cmp edi, ebp
jne 0x4546e6
mov eax, 0x4cb7d4
xor ecx, ecx
mov word [esp + 0x2c], cx
mov edi, 7
mov ecx, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
lea esi, [ecx + 2]
nop
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x454700
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.004065f0
push 0xffffffffffffffff
push ebp
mov eax, esi
lea ecx, [esp + 0xb8]
mov byte [esp + 0x10c], 2
call fcn.00406460
mov byte [esp + 0x104], 0
cmp dword [esp + 0x40], ebx
jb 0x45474d
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046fda3
add esp, 4
mov eax, dword [esp + 0x44]
cmp eax, ebp
jne 0x45475a
mov eax, 0x4cb7d4
xor ecx, ecx
mov word [esp + 0x2c], cx
mov ecx, eax
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebp
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x454770
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.004065f0
push 0xffffffffffffffff
push ebp
mov eax, esi
lea ecx, [esp + 0xd4]
mov byte [esp + 0x10c], 3
call fcn.00406460
mov byte [esp + 0x104], 0
cmp dword [esp + 0x40], ebx
jb 0x4547bd
mov edx, dword [esp + 0x2c]
push edx
call fcn.0046fda3
add esp, 4
mov ecx, dword [esp + 0x120]
xor eax, eax
cmp byte [esp + 0x11c], al
mov dword [esp + 0xec], ecx
mov ecx, dword [esp + 0x78]
setne al
mov dword [esp + 0xf0], ebp
mov dword [esp + 0xe8], eax
mov eax, ecx
and eax, 2
je 0x4547f4
test bl, cl
jne 0x454861
cmp eax, ebp
je 0x454802
test dword [esp + 0x7c], 0x200000
jne 0x454861
mov edx, dword [esp + 0x20]
push edx
lea ebx, [esp + 0x28]
mov dword [esp + 0x28], 0xffffffff
call fcn.00453e90
test al, al
je 0x454861
mov ebp, dword [esp + 0x24]
cmp ebp, 0xffffffff
je 0x454861
call fcn.004551e0
lea esi, [esp + 0x64]
call fcn.00455600
xor ebx, ebx
push ebx
mov esi, eax
push ebx
lea eax, [esp + 0x60]
push eax
push ebp
mov dword [esp + 0x68], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x454896
cmp esi, ebx
je 0x45485a
call fcn.00454020
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x64]
call fcn.00464310
xor al, al
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.0046fdae
add esp, 0xf4
ret 0x24
push ebx
mov dword [esp + 0x60], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x60]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x4548b9
call fcn.00454020
jmp 0x454861
call fcn.00454020
mov byte [esp + 0x1b], bl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
lea ebx, [ebx]
xor esi, esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0xffffffff
push 8
mov byte [esp + 0x108], 4
call fcn.004706a8
mov edi, eax
add esp, 4
mov dword [esp + 0x28], edi
cmp edi, ebx
je 0x454913
mov esi, 8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
push ebx
lea eax, [esp + 0x50]
push eax
push esi
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x60], ebx
call ebp
test eax, eax
jne 0x45493d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x454b37
mov esi, dword [edi + 4]
push esi
mov dword [esp + 0x38], esi
call fcn.004706a8
mov edi, eax
add esp, 4
mov dword [esp + 0x30], edi
cmp edi, ebx
je 0x45495f
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x50]
push ecx
push esi
push edi
push edx
call ebp
test eax, eax
jne 0x454983
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x454b37
cmp dword [0x504f90], ebx
jne 0x4549a8
push 4
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x4549a1
mov dword [eax], 0x4db8b8
jmp 0x4549a3
xor eax, eax
mov dword [0x504f90], eax
cmp edi, ebx
je 0x454b37
push edi
mov eax, esi
call fcn.00455210
mov esi, eax
cmp esi, ebx
je 0x454b37
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
cmp eax, 8
ja case.0x4549d2.0
jmp dword [eax*4 + 0x454b7c]
mov ebp, dword [esp + 0x1c]
cmp ebp, ebx
je 0x454b07
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454a00
mov dword [eax], 0x4db854
mov dword [eax + 4], esi
mov edi, eax
jmp 0x454a02
xor edi, edi
mov eax, dword [esp + 0x48]
push edi
push 5
push eax
call ebp
add esp, 0xc
push edi
call fcn.0046fda3
mov edi, dword [esp + 0x34]
add esp, 4
jmp 0x454b07
cmp dword [esp + 0x1c], ebx
je 0x454b07
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454a52
mov ecx, dword [esp + 0x48]
mov edi, eax
push edi
push 6
push ecx
mov dword [eax], 0x4db860
mov dword [eax + 4], esi
call dword [esp + 0x28]
jmp 0x454a0c
mov ecx, dword [esp + 0x48]
xor edi, edi
push edi
push 6
push ecx
call dword [esp + 0x28]
jmp 0x454a0c
cmp dword [esp + 0x1c], ebx
je 0x454b07
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454a96
mov edx, dword [esp + 0x48]
mov edi, eax
push edi
push 7
push edx
mov dword [eax], 0x4db874
mov dword [eax + 4], esi
call dword [esp + 0x28]
jmp 0x454a0c
mov edx, dword [esp + 0x48]
xor edi, edi
push edi
push 7
push edx
call dword [esp + 0x28]
jmp 0x454a0c
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov byte [esp + 0x1b], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x44], ecx
cmp dword [esp + 0x1c], ebx
je 0x454b07
push 8
call fcn.004706a8
add esp, 4
cmp eax, ebx
je 0x454aec
mov edx, dword [esp + 0x48]
mov edi, eax
push edi
push 8
push edx
mov dword [eax], 0x4db894
mov dword [eax + 4], esi
call dword [esp + 0x28]
jmp 0x454a0c
mov edx, dword [esp + 0x48]
xor edi, edi
push edi
push 8
push edx
call dword [esp + 0x28]
jmp 0x454a0c
mov dword [esp + 0x20], 0x186a0
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp dword [esp + 0x50], 8
je 0x454b37
push edi
call fcn.0046fda3
mov eax, dword [esp + 0x2c]
add esp, 4
push eax
call fcn.0046fda3
mov ebp, dword [esp + 0x28]
add esp, 4
jmp 0x4548d0
lea esi, [esp + 0x28]
call fcn.00464ba0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
mov dword [edx], eax
mov edx, dword [esp + 0x44]
mov dword [ecx], edx
cmp byte [esp + 0x1b], bl
je 0x454b6b
cmp eax, ebx
jne 0x454b6b
mov bl, 1
lea ecx, [esp + 0x64]
call fcn.00464310
mov al, bl
jmp 0x45486c