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

Disassembly:
push 0xffffffffffffffff
push 0x50d189
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x124]
mov edi, dword [esp + 0x11c]
xor ebx, ebx
cmp dword [esp + 0x128], ebx
mov dword [esp + 0x114], ebx
jne 0x444114
mov dword [esp + 0x114], 0xffffffff
mov esi, dword [esp + 0x14c]
cmp esi, ebx
je 0x44410d
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x44410d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x44410d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x444878
push 0x80000
mov dword [esp + 0x20], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x2c], ebx
call fcn.004e7330
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 0x80000
mov eax, dword [esp + 0x128]
push 1
mov byte [esp + 0x118], 1
push ebx
push ebx
lea esi, [esp + 0x50]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0043ec40
mov esi, dword [esp + 0x134]
cmp esi, ebx
mov ecx, dword [esp + 0x130]
ja 0x44418e
cmp ecx, ebx
jbe 0x4447a2
nop
cmp esi, ebx
jb 0x444199
ja 0x44418e
cmp ecx, 0x80000
jbe 0x444199
mov ecx, 0x80000
mov dword [esp + 0x50], ebx
jmp 0x44419d
mov dword [esp + 0x50], esi
cmp dword [esp + 0x24], ebx
je 0x444471
mov eax, dword [esp + 0x128]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x444471
push ebx
lea edx, [esp + 0x1c]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x444471
mov eax, dword [esp + 0x18]
cmp eax, ebx
seta cl
cmp cl, bl
je 0x444471
sub dword [esp + 0x130], eax
mov dl, byte [edi + 0x110]
sbb esi, ebx
test dl, dl
mov dword [esp + 0x134], esi
jne 0x444555
mov ecx, dword [ebp + 0x80]
sub ecx, dword [esp + 0x130]
mov edx, dword [ebp + 0x84]
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
sbb edx, esi
sub ecx, dword [esp + 0x140]
sbb edx, dword [esp + 0x144]
push edx
push ecx
push ebp
mov ecx, edi
call eax
cmp dword [ebp + 0x70], ebx
mov ebp, dword [esp + 0x148]
jne 0x444312
mov edx, dword [esp + 0x12c]
mov eax, dword [edx]
cmp eax, 0xffffffff
mov ecx, dword [esp + 0x18]
mov esi, ecx
je 0x44427b
push ebx
lea edx, [esp + 0x44]
push edx
push ecx
mov ecx, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44427b
cmp esi, dword [esp + 0x40]
je 0x44443a
mov edx, 0x51a1d4
lea eax, [esp + 0x98]
call fcn.00406ac0
mov byte [esp + 0x114], 4
mov ebp, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x98]
push ecx
add ebp, 0x30
call esi
mov edx, dword [ebp]
push eax
mov ecx, edi
call edx
mov byte [esp + 0x114], 1
cmp dword [esp + 0xb0], 8
mov byte [esp + 0x17], al
jb 0x4442d7
mov eax, dword [esp + 0x9c]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x4444d2
mov ebx, dword [edi]
add ebx, 0x34
call esi
mov ecx, dword [esp + 0x120]
mov edx, dword [ebx]
push eax
push ecx
push 0x10000003
mov ecx, edi
call edx
test al, al
lea ecx, [esp + 0x1c]
jne 0x4444d6
call fcn.00401070
jmp 0x444562
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, ebx
mov esi, eax
mov dword [esp + 0x2c], ebx
jbe 0x44443a
jmp 0x444330
mov edx, dword [esp + 0x11c]
mov eax, dword [edx + 0x114]
cmp eax, ebx
je 0x44434f
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x44434f
push eax
call sub.KERNEL32.dll_Sleep
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
mov byte [esp + 0x3c], bl
call edx
xor ecx, ecx
cmp dword [esp + 0x13c], ecx
ja 0x444378
jb 0x444373
cmp dword [esp + 0x138], eax
ja 0x444378
mov byte [esp + 0x3c], 1
mov ecx, dword [esp + 0x3c]
mov eax, dword [ebp]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x30]
push edx
mov edx, dword [eax + 8]
add ecx, edi
push esi
push ecx
mov ecx, ebp
call edx
test al, al
je 0x444580
mov eax, dword [esp + 0x2c]
add edi, eax
sub esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
mov dword [esp + 0x58], edi
mov dword [esp + 0x4c], esi
call edx
test eax, eax
jbe 0x444432
mov dword [esp + 0x38], ebx
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x38]
push ecx
mov ecx, ebp
call edx
cmp eax, ebx
je 0x444428
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
jbe 0x444428
sub dword [esp + 0x138], ecx
mov edx, dword [esp + 0x12c]
mov edx, dword [edx]
sbb dword [esp + 0x13c], ebx
cmp edx, 0xffffffff
mov dword [esp + 0x30], ebx
mov esi, ecx
je 0x4446fb
push ebx
lea edi, [esp + 0x34]
push edi
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4446fb
cmp esi, dword [esp + 0x30]
jne 0x4446fb
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x4c]
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, ebp
call edx
cmp esi, ebx
ja 0x444330
cmp dword [esp + 0x134], ebx
ja 0x444450
cmp dword [esp + 0x130], ebx
jbe 0x4447a9
mov esi, dword [esp + 0x134]
mov edi, dword [esp + 0x11c]
mov ebp, dword [esp + 0x124]
mov ecx, dword [esp + 0x130]
jmp 0x444180
mov edx, 0x51a1d4
lea eax, [esp + 0xb4]
call fcn.00406ac0
mov byte [esp + 0x114], 2
mov esi, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0xb4]
push eax
add esi, 0x30
call ebp
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov byte [esp + 0x114], 1
cmp dword [esp + 0xcc], 8
mov byte [esp + 0x17], al
jb 0x4444cc
mov eax, dword [esp + 0xb8]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x17], bl
je 0x4444e0
lea ecx, [esp + 0x1c]
call fcn.00401070
jmp 0x44485f
mov edx, 0x51a1d4
lea eax, [esp + 0xd0]
call fcn.00406ac0
mov byte [esp + 0x114], 3
mov esi, dword [edi]
add esi, 0x34
call ebp
mov edx, dword [esi]
push eax
lea ecx, [esp + 0xd4]
push ecx
push 0x10000002
mov ecx, edi
call edx
lea esi, [esp + 0xd0]
mov byte [esp + 0x17], al
call fcn.00481d30
lea ecx, [esp + 0x1c]
call fcn.00401070
lea eax, [esp + 0x148]
mov dword [esp + 0x114], 0xffffffff
call fcn.0043de60
cmp byte [esp + 0x17], bl
jne 0x444876
xor al, al
jmp 0x444878
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d6a
add esp, 4
lea eax, [esp + 0x148]
mov dword [esp + 0x114], 0xffffffff
call fcn.0043de60
xor al, al
jmp 0x444878
push ebx
push 0x51a1d4
lea esi, [esp + 0x84]
mov dword [esp + 0x9c], 7
mov dword [esp + 0x98], ebx
mov word [esp + 0x88], bx
call fcn.00407330
mov ebp, dword [esp + 0x11c]
mov byte [esp + 0x114], 5
mov esi, dword [ebp]
lea eax, [esp + 0x7c]
push eax
add esi, 0x30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov ecx, ebp
call edx
mov byte [esp + 0x114], 1
cmp dword [esp + 0x94], 8
mov byte [esp + 0x17], al
jb 0x4445f9
mov eax, dword [esp + 0x80]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x17], bl
je 0x44465d
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004e7d6a
mov dword [esp + 0x118], 0xffffffff
mov esi, dword [esp + 0x150]
add esp, 4
cmp esi, ebx
je 0x444876
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x444876
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x444876
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x444876
mov eax, dword [esp + 0x124]
mov edx, dword [ebp]
mov edx, dword [edx + 0x38]
xor ecx, ecx
add edi, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
adc eax, ecx
sub edi, dword [esp + 0x130]
mov ecx, ebp
sbb eax, dword [esp + 0x134]
add edi, dword [esp + 0x44]
adc eax, dword [esp + 0x48]
push eax
push edi
push 0x30000003
call edx
mov eax, dword [esp + 0x24]
push eax
call fcn.004e7d6a
mov dword [esp + 0x118], 0xffffffff
mov esi, dword [esp + 0x150]
add esp, 4
cmp esi, ebx
je 0x444579
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x444579
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x444579
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
xor al, al
jmp 0x444878
mov edi, dword [esp + 0x11c]
push ebx
push 0x51a1d4
lea esi, [esp + 0x68]
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], ebx
mov word [esp + 0x6c], bx
call fcn.00407330
mov byte [esp + 0x114], 6
mov esi, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x60]
push ecx
add esi, 0x30
call ebp
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
mov byte [esp + 0x114], 1
cmp dword [esp + 0x78], 8
mov byte [esp + 0x17], al
jb 0x444766
mov eax, dword [esp + 0x64]
push eax
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x4445ff
mov esi, dword [edi]
add esi, 0x34
call ebp
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x124]
push eax
push 0x10000003
mov ecx, edi
call edx
test al, al
je 0x444798
mov eax, dword [esp + 0x24]
jmp 0x444856
mov ecx, dword [esp + 0x24]
push ecx
jmp 0x44455a
mov ebp, dword [esp + 0x148]
mov eax, dword [esp + 0x124]
cmp dword [eax + 0x70], ebx
je 0x44482a
mov edx, dword [ebp]
mov eax, dword [edx + 0xc]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
jbe 0x44480b
mov dword [esp + 0x34], ebx
mov edx, dword [ebp]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x34]
push eax
mov ecx, ebp
call edx
cmp eax, ebx
je 0x44480b
mov edi, dword [esp + 0x34]
cmp edi, ebx
jbe 0x44480b
mov ecx, dword [esp + 0x12c]
push ecx
lea esi, [esp + 0x60]
mov ecx, eax
mov dword [esp + 0x60], ebx
call fcn.0043eba0
test al, al
je 0x444894
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
ja 0x4447b5
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, ebp
call edx
mov eax, dword [esp + 0x124]
mov ecx, dword [eax + 0x5c]
mov edx, dword [eax + 0x58]
push ecx
mov ecx, dword [eax + 0x54]
push edx
mov edx, dword [eax + 0x50]
push ecx
mov ecx, dword [eax + 0x4c]
push edx
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x13c]
push ecx
push edx
call fcn.0043ecc0
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x44485f
push eax
call fcn.004e7d6a
add esp, 4
lea eax, [esp + 0x148]
mov dword [esp + 0x114], 0xffffffff
call fcn.0043de60
mov al, 1
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 0x34
mov edx, 0x51a1d4
lea eax, [esp + 0xec]
call fcn.00406ac0
mov edi, dword [esp + 0x11c]
mov byte [esp + 0x114], 7
mov esi, dword [edi]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0xec]
push ecx
add esi, 0x30
call ebp
mov edx, dword [esi]
push eax
mov ecx, edi
call edx
lea esi, [esp + 0xec]
mov byte [esp + 0x17], al
mov byte [esp + 0x114], 1
call fcn.00481d30
cmp byte [esp + 0x17], bl
jne 0x4444d2
mov esi, dword [edi]
add esi, 0x34
call ebp
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x124]
push eax
push 0x10000003
mov ecx, edi
call edx
test al, al
lea ecx, [esp + 0x1c]
je 0x444308
call fcn.00401070
jmp 0x44485f