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

Disassembly:
push 0xffffffffffffffff
push 0x4bd9b7
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0xd8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [esp + 0x104]
mov edx, dword [esp + 0x124]
mov esi, dword [esp + 0x110]
mov edi, dword [esp + 0x114]
mov ebp, dword [esp + 0x118]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x128]
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x12c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x130]
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.0045fdf0
mov ecx, dword [esp + 0x108]
mov dword [esp + 0xfc], 0
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], ebx
test bl, 4
je 0x45dccf
test esi, esi
je 0x45dccf
push 0x10
push esi
lea edx, [esp + 0x84]
push 0x10
push edx
call fcn.00498360
add esp, 0x10
test bl, 0x10
je 0x45dce3
mov eax, dword [esp + 0x10c]
test eax, eax
jle 0x45dce3
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0x84000000
test edi, edi
jne 0x45dcf4
mov edi, 0x4d6464
xor eax, eax
mov ecx, edi
mov word [esp + 0x28], ax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x45dd10
sub ecx, eax
sar ecx, 1
push ecx
mov eax, edi
lea esi, [esp + 0x28]
call fcn.00405e30
mov ecx, esi
push ecx
lea ecx, [esp + 0x90]
mov byte [esp + 0x100], 1
call fcn.00430720
mov byte [esp + 0xfc], 0
cmp dword [esp + 0x3c], 8
jb 0x45dd5e
mov edx, dword [esp + 0x28]
push edx
call fcn.00498355
add esp, 4
xor ebx, ebx
cmp ebp, ebx
jne 0x45dd69
mov ebp, 0x4d6464
xor eax, eax
mov edi, 7
mov ecx, ebp
mov word [esp + 0x28], ax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x45dd82
sub ecx, eax
sar ecx, 1
push ecx
mov eax, ebp
lea esi, [esp + 0x28]
call fcn.00405e30
mov ecx, esi
push ecx
lea ecx, [esp + 0xac]
mov byte [esp + 0x100], 2
call fcn.00430720
mov byte [esp + 0xfc], 0
cmp dword [esp + 0x3c], 8
jb 0x45ddd0
mov edx, dword [esp + 0x28]
push edx
call fcn.00498355
add esp, 4
mov eax, dword [esp + 0x40]
cmp eax, ebx
jne 0x45dddd
mov eax, 0x4d6464
xor ecx, ecx
mov word [esp + 0x28], cx
mov ecx, eax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x45ddf1
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x28]
call fcn.00405e30
mov edx, esi
push edx
lea ecx, [esp + 0xc8]
mov byte [esp + 0x100], 3
call fcn.00430720
mov byte [esp + 0xfc], 0
cmp dword [esp + 0x3c], 8
jb 0x45de3d
mov eax, dword [esp + 0x28]
push eax
call fcn.00498355
add esp, 4
mov eax, dword [esp + 0x134]
mov edx, dword [esp + 0x120]
xor ecx, ecx
cmp byte [esp + 0x11c], cl
mov dword [esp + 0xe8], eax
setne cl
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x70]
mov eax, ecx
and eax, 2
je 0x45de7c
test cl, 8
jne 0x45dee9
cmp eax, ebx
je 0x45de8a
test dword [esp + 0x74], 0x200000
jne 0x45dee9
mov ecx, dword [esp + 0x1c]
push ecx
lea ebx, [esp + 0x24]
mov dword [esp + 0x24], 0xffffffff
call fcn.0045d4d0
test al, al
je 0x45dee9
mov edi, dword [esp + 0x20]
cmp edi, 0xffffffff
je 0x45dee9
call fcn.0045e870
lea esi, [esp + 0x5c]
call fcn.0045ecd0
xor ebx, ebx
push ebx
push ebx
lea edx, [esp + 0x60]
push edx
push edi
mov esi, eax
mov dword [esp + 0x68], 2
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x45df1e
cmp esi, ebx
je 0x45dee2
call fcn.0045d660
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x5c]
call fcn.0045fee0
xor al, al
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00497c58
add esp, 0xec
ret 0x34
push ebx
mov dword [esp + 0x58], ebx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x58]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, ebx
jne 0x45df41
call fcn.0045d660
jmp 0x45dee9
call fcn.0045d660
mov byte [esp + 0x17], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x40], ebx
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], 0xffffffff
push 8
mov byte [esp + 0x100], 4
call fcn.00498bee
mov edi, eax
add esp, 4
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x45df9b
mov esi, 8
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0x4c]
push eax
push esi
push edi
push ecx
mov dword [esp + 0x5c], ebx
call ebp
test eax, eax
jne 0x45dfc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45e198
mov esi, dword [edi + 4]
push esi
mov dword [esp + 0x34], esi
call fcn.00498bee
mov edi, eax
add esp, 4
mov dword [esp + 0x2c], edi
cmp edi, ebx
je 0x45dfe5
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x4c]
push edx
push esi
push edi
push eax
call ebp
test eax, eax
jne 0x45e009
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x45e198
cmp dword [0x501bc0], ebx
jne 0x45e02e
push 4
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45e027
mov dword [eax], vtable.t_ipcClientTaskMsgFactory.0
jmp 0x45e029
xor eax, eax
mov dword [0x501bc0], eax
cmp edi, ebx
je 0x45e198
push edi
mov eax, esi
call fcn.0045e8a0
mov esi, eax
cmp esi, ebx
je 0x45e198
mov ebp, dword [esi + 8]
cmp ebp, 8
ja case.0x45e054.0
jmp dword [ebp*4 + 0x45e1dc]
cmp dword [esp + 0x18], ebx
je 0x45e16e
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45e080
mov dword [eax], vtable.t_conditonWait.0
mov dword [eax + 4], esi
mov edi, eax
jmp 0x45e082
xor edi, edi
mov ecx, dword [esp + 0x44]
push edi
push 5
push ecx
call dword [esp + 0x24]
add esp, 0xc
push edi
call fcn.00498355
mov edi, dword [esp + 0x30]
add esp, 4
jmp 0x45e16e
cmp dword [esp + 0x18], ebx
je 0x45e16e
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45e0d0
mov edx, dword [esp + 0x44]
mov edi, eax
push edi
push 6
mov dword [eax], vtable.t_conditionStart.0
mov dword [eax + 4], esi
push edx
jmp 0x45e08a
mov edx, dword [esp + 0x44]
xor edi, edi
push edi
push 6
push edx
jmp 0x45e08a
cmp dword [esp + 0x18], ebx
je 0x45e16e
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45e109
mov edi, eax
push edi
mov dword [eax], vtable.t_conditionDownloading.0
mov dword [eax + 4], esi
mov eax, dword [esp + 0x48]
push 7
push eax
jmp 0x45e08a
mov eax, dword [esp + 0x44]
xor edi, edi
push edi
push 7
push eax
jmp 0x45e08a
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov byte [esp + 0x17], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], edx
cmp dword [esp + 0x18], ebx
je 0x45e16e
push 8
call fcn.00498bee
add esp, 4
cmp eax, ebx
je 0x45e157
mov edi, eax
push edi
mov dword [eax], vtable.t_conditionEnd.0
mov dword [eax + 4], esi
mov eax, dword [esp + 0x48]
push 8
push eax
jmp 0x45e08a
mov eax, dword [esp + 0x44]
xor edi, edi
push edi
push 8
push eax
jmp 0x45e08a
mov dword [esp + 0x1c], 0x186a0
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
cmp ebp, 8
je 0x45e198
push edi
call fcn.00498355
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call fcn.00498355
add esp, 4
jmp 0x45df52
lea esi, [esp + 0x24]
call fcn.00460250
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
mov dword [ecx], eax
mov ecx, dword [esp + 0x40]
mov dword [edx], ecx
cmp byte [esp + 0x17], bl
je 0x45e1cc
cmp eax, ebx
jne 0x45e1cc
mov bl, 1
lea ecx, [esp + 0x5c]
call fcn.0045fee0
mov al, bl
jmp 0x45def4