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

Disassembly:
push 0xffffffffffffffff
push 0x4bda19
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0xac], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0xc4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0xd8]
mov eax, dword [esp + 0xd4]
mov esi, dword [esp + 0xe0]
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xe8]
lea ecx, [esp + 0x50]
push ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
call fcn.0045d2f0
xor ebp, ebp
mov dword [esp + 0xcc], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebx
test bl, 4
je 0x45d724
cmp esi, ebp
je 0x45d724
push 0x10
push esi
lea edx, [esp + 0x78]
push 0x10
push edx
call fcn.00498360
add esp, 0x10
test bl, 2
je 0x45d738
mov eax, dword [esp + 0xdc]
cmp eax, ebp
jle 0x45d738
mov dword [esp + 0x68], eax
mov eax, edi
cmp edi, ebp
jne 0x45d743
mov eax, 0x4d6464
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]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x45d760
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.00405e30
mov edx, esi
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0xd0], 1
call fcn.00430720
mov ebx, 8
mov byte [esp + 0xcc], 0
cmp dword [esp + 0x40], ebx
jb 0x45d7b0
mov eax, dword [esp + 0x2c]
push eax
call fcn.00498355
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jne 0x45d7bd
mov eax, 0x4d6464
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 dx, word [ecx]
add ecx, 2
cmp dx, bp
jne 0x45d7d1
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x2c]
call fcn.00405e30
mov edx, esi
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xd0], 2
call fcn.00430720
mov byte [esp + 0xcc], 0
cmp dword [esp + 0x40], ebx
jb 0x45d81c
mov eax, dword [esp + 0x2c]
push eax
call fcn.00498355
add esp, 4
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0xec]
push edx
lea ebx, [esp + 0x28]
mov dword [esp + 0x70], 1
mov dword [esp + 0xbc], ecx
mov dword [esp + 0x28], 0xffffffff
call fcn.0045d4d0
test al, al
je 0x45d8bb
mov edi, dword [esp + 0x24]
cmp edi, 0xffffffff
je 0x45d8bb
xor ebx, ebx
cmp dword [0x501bc0], ebx
jne 0x45d87c
push 4
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45d875
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
jmp 0x45d877
xor eax, eax
mov dword [0x501bc0], eax
lea esi, [esp + 0x50]
call fcn.0045ecd0
push ebx
mov esi, eax
mov dword [esp + 0x50], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x50]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
mov eax, dword [esi]
jne 0x45d8f0
cmp eax, ebx
je 0x45d8b2
push eax
call fcn.00498355
add esp, 4
push esi
call fcn.00498355
add esp, 4
lea esi, [esp + 0x50]
call fcn.0045d3b0
xor al, al
mov ecx, dword [esp + 0xc4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.00497c58
add esp, 0xbc
ret 0x1c
cmp eax, ebx
je 0x45d8fd
push eax
call fcn.00498355
add esp, 4
push esi
call fcn.00498355
mov byte [esp + 0x1b], bl
mov dword [esp + 0x20], ebx
xor esi, esi
add esp, 4
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 + 0xd0], 3
call fcn.00498bee
mov ebp, eax
add esp, 4
mov dword [esp + 0x28], ebp
cmp ebp, ebx
je 0x45d951
mov esi, 8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], ebx
push ebx
lea eax, [esp + 0x4c]
push eax
push esi
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esp + 0x5c], ebx
call edi
test eax, eax
jne 0x45d97b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45dba0
mov esi, dword [ebp + 4]
push esi
mov dword [esp + 0x38], esi
call fcn.00498bee
mov ebp, eax
add esp, 4
mov dword [esp + 0x30], ebp
cmp ebp, ebx
je 0x45d99d
mov dword [esp + 0x38], 1
mov edx, dword [esp + 0x24]
push ebx
lea ecx, [esp + 0x4c]
push ecx
push esi
push ebp
push edx
call edi
test eax, eax
jne 0x45d9c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45dba0
cmp dword [0x501bc0], ebx
jne 0x45d9e6
push 4
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45d9df
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
jmp 0x45d9e1
xor eax, eax
mov dword [0x501bc0], eax
cmp ebp, ebx
je 0x45dba0
push ebp
mov eax, esi
call fcn.0045e8a0
mov esi, eax
cmp esi, ebx
je 0x45dba0
mov eax, dword [esi + 8]
mov dword [esp + 0x44], eax
add eax, 0xfffffffb
cmp eax, 0x13
ja case.0x45da1a.9
movzx eax, byte [eax + 0x45dbec]
jmp dword [eax*4 + 0x45dbd4]
mov ebp, dword [esp + 0x18]
cmp ebp, ebx
je 0x45db6f
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45da48
mov dword [eax], vtable.t_conditonWait.0
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45da4a
xor edi, edi
mov ecx, dword [esp + 0x20]
push edi
push 5
push ecx
call ebp
add esp, 0xc
push edi
call fcn.00498355
add esp, 4
jmp 0x45db6f
cmp dword [esp + 0x18], ebx
je 0x45db6f
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45da8a
mov dword [eax], vtable.t_conditionStart.0
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45da8c
xor edi, edi
mov edx, dword [esp + 0x20]
push edi
push 6
push edx
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.00498355
add esp, 4
jmp 0x45db6f
cmp dword [esp + 0x18], ebx
je 0x45db6f
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45dace
mov dword [eax], vtable.t_sodaToDirect.0
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45dad0
xor edi, edi
push edi
push 0x18
mov eax, dword [esp + 0x28]
push eax
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.00498355
add esp, 4
jmp 0x45db6f
cmp dword [esp + 0x18], ebx
je 0x45db6f
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45db0e
mov dword [eax], vtable.t_conditionDownloading.0
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45db10
xor edi, edi
mov ecx, dword [esp + 0x20]
push edi
push 7
push ecx
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.00498355
add esp, 4
jmp 0x45db6f
mov edx, dword [esi + 0x18]
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], edx
cmp dword [esp + 0x18], ebx
je 0x45db6f
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45db5d
mov edi, eax
push edi
mov dword [eax], vtable.t_conditionEnd.0
mov dword [eax + 4], esi
push 8
jmp 0x45dad3
xor edi, edi
push edi
push 8
jmp 0x45dad3
mov dword [esp + 0x1c], 0x2710
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp dword [esp + 0x44], 8
je 0x45dba0
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00498355
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
call fcn.00498355
mov edi, dword [esp + 0x28]
jmp 0x45d90b
lea esi, [esp + 0x28]
call fcn.00460250
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x17], bl
je 0x45dbc2
cmp dword [esp + 0x1c], ebx
jne 0x45dbc2
mov bl, 1
lea esi, [esp + 0x50]
call fcn.0045d3b0
mov al, bl
jmp 0x45d8c6