Function at 0x41bb50
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x480180
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov esi, dword [esp + 0x9c]
mov edi, dword [esp + 0x98]
mov ebx, dword [esp + 0x94]
xor ebp, ebp
push edi
mov dword [esp + 0x90], ebp
call fcn.0041d780
add esp, 4
test al, al
je 0x41bc18
call fcn.0041da20
test al, al
jne 0x41bc18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov eax, dword [ebx]
mov edx, dword [eax + 0x30]
push edi
push ebp
mov ecx, ebx
call edx
test al, al
je 0x41bbe2
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x80]
mov eax, dword [ebx]
mov eax, dword [eax + 0x24]
push ecx
push edx
push esi
mov ecx, ebx
call eax
jmp 0x41c261
mov edx, dword [ebx]
mov eax, dword [edx + 0x34]
push ebp
push edi
push 0x10000004
mov ecx, ebx
call eax
test al, al
mov dword [esp + 0x8c], 0xffffffff
lea eax, [esp + 0xa0]
jne 0x41c273
call fcn.00419340
xor al, al
jmp 0x41c27a
mov byte [esp + 0x8c], 1
mov eax, dword [esi + 0x60]
or eax, 0x8000000
cmp dword [edi + 0x18], 8
jb 0x41bc33
mov ecx, dword [edi + 4]
jmp 0x41bc36
lea ecx, [edi + 4]
push ebp
push eax
push 2
push ebp
push 1
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x94], eax
jne 0x41bcfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
push edi
mov dword [esp + 0xa0], eax
push eax
mov eax, dword [edx + 0x30]
mov ecx, ebx
call eax
test al, al
je 0x41bcde
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
push eax
push ecx
push esi
mov ecx, ebx
call edx
mov dword [esp + 0x8c], 0xffffffff
mov esi, dword [esp + 0xa4]
cmp esi, ebp
je 0x41c278
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41c278
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 0x41c278
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
jmp 0x41c278
mov ecx, dword [esp + 0x9c]
mov eax, dword [ebx]
mov edx, dword [eax + 0x34]
push ecx
push edi
push 0x10000001
mov ecx, ebx
call edx
jmp 0x41bbf2
lea eax, [esp + 0x94]
call fcn.00415600
push 0x80000
mov dword [esp + 0x58], vtable.GameMgr::GMBuffer_unsigned_char_.0
mov dword [esp + 0x64], ebp
call fcn.00469ab0
add esp, 4
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], 0x80000
mov byte [esp + 0x8c], 2
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov edi, dword [esi + 0x84]
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0xb4]
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
call fcn.004154f0
cmp edi, ebp
mov ecx, dword [esp + 0x3c]
ja 0x41bd80
cmp ecx, ebp
jbe 0x41c184
cmp edi, ebp
mov edx, dword [esp + 0x5c]
jb 0x41bd9d
ja 0x41bd92
cmp ecx, 0x80000
jbe 0x41bd9d
mov ecx, 0x80000
mov dword [esp + 0x30], ebp
jmp 0x41bda1
mov dword [esp + 0x30], edi
cmp edx, ebp
mov eax, dword [ebx + 0xb4]
je 0x41bfca
cmp dword [eax], 0xffffffff
je 0x41bfca
push ebp
lea esi, [esp + 0x18]
push esi
push ecx
mov dword [esp + 0x20], ebp
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bfca
mov eax, dword [esp + 0x14]
cmp eax, ebp
seta cl
test cl, cl
je 0x41bfca
sub dword [esp + 0x3c], eax
mov cl, byte [ebx + 0x100]
sbb edi, ebp
test cl, cl
mov dword [esp + 0x40], edi
jne 0x41c05e
mov edi, dword [esp + 0x9c]
mov eax, dword [edi + 0x80]
sub eax, dword [esp + 0x3c]
mov ecx, dword [edi + 0x84]
sbb ecx, dword [esp + 0x40]
mov edx, dword [ebx]
mov edx, dword [edx + 0x24]
push ecx
push eax
push edi
mov ecx, ebx
call edx
cmp dword [edi + 0x70], 0
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
jne 0x41be9d
mov edx, dword [esp + 0x5c]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41be61
cmp edi, dword [esp + 0x1c]
je 0x41bfa9
mov edi, dword [ebx]
add edi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x98]
push eax
mov eax, dword [edi]
push edx
push 0x10000003
mov ecx, ebx
call eax
test al, al
lea ecx, [esp + 0x54]
je 0x41c075
call fcn.0040ca60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c261
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0
jbe 0x41bfa9
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x41becb
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x41becb
push eax
call sub.KERNEL32.dll_Sleep
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov ecx, ebp
mov byte [esp + 0x20], 0
call edx
xor ecx, ecx
cmp dword [esp + 0x48], ecx
ja 0x41beef
jb 0x41beea
cmp dword [esp + 0x44], eax
ja 0x41beef
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp]
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x64]
push ecx
add edx, esi
push edx
mov ecx, ebp
call eax
test al, al
je 0x41c07d
mov eax, dword [esp + 0x24]
mov edx, dword [ebp]
sub dword [esp + 0x18], eax
add esi, eax
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
jbe 0x41bf9e
mov dword [esp + 0x28], 0
mov edx, dword [ebp]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call edx
test eax, eax
je 0x41bf94
mov ecx, dword [esp + 0x28]
test ecx, ecx
jbe 0x41bf94
sub dword [esp + 0x44], ecx
mov edx, 0
push edx
sbb dword [esp + 0x4c], edx
mov dword [esp + 0x30], edx
lea edx, [esp + 0x30]
push edx
push ecx
push eax
mov eax, dword [esp + 0xa4]
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c119
cmp edi, dword [esp + 0x2c]
jne 0x41c119
mov edi, dword [esp + 0x9c]
mov edx, dword [ebp]
mov eax, dword [edx + 0x1c]
mov ecx, ebp
call eax
cmp dword [esp + 0x18], 0
ja 0x41beb3
cmp dword [esp + 0x40], 0
ja 0x41bfbb
cmp dword [esp + 0x3c], 0
jbe 0x41c18b
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
xor ebp, ebp
jmp 0x41bd80
mov edx, 0x4851c0
lea eax, [esp + 0x64]
call fcn.00404820
mov byte [esp + 0x8c], 3
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea ecx, [esp + 0x68]
push ecx
push 0x10000002
mov ecx, ebx
call edx
cmp dword [esp + 0x7c], 8
mov bl, al
jb 0x41c012
mov eax, dword [esp + 0x68]
push eax
call fcn.00469d48
add esp, 4
lea ecx, [esp + 0x54]
call fcn.0040ca60
test bl, bl
je 0x41c032
mov ecx, dword [esp + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41c261
mov edx, dword [esp + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xa0]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00419340
xor al, al
jmp 0x41c27a
mov eax, dword [esp + 0x5c]
push eax
call fcn.00469cbe
mov ecx, dword [esp + 0x98]
add esp, 4
push ecx
jmp 0x41c03a
call fcn.0040ca60
push esi
jmp 0x41c03a
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
xor eax, eax
sub esi, dword [esp + 0x3c]
mov ecx, ebx
sbb eax, dword [esp + 0x40]
add esi, dword [edi + 0x80]
adc eax, dword [edi + 0x84]
add esi, dword [esp + 0x4c]
adc eax, dword [esp + 0x50]
push eax
push esi
push 0x30000003
call edx
mov eax, dword [esp + 0x5c]
push eax
call fcn.00469cbe
mov ecx, dword [esp + 0x98]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0xffffffff
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x41bc11
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x41bc11
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 0x41bc11
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
xor al, al
jmp 0x41c27a
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x9c]
push eax
push 0x10000003
mov ecx, ebx
call edx
test al, al
mov eax, dword [esp + 0x5c]
push eax
je 0x41c0b0
call fcn.00469cbe
mov ecx, dword [esp + 0x98]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x8c], 0xffffffff
mov esi, dword [esp + 0xa4]
test esi, esi
je 0x41c278
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jmp 0x41bcb1
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x9c]
cmp dword [esi + 0x70], 0
je 0x41c215
mov eax, dword [ebp]
mov edx, dword [eax + 0xc]
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
mov ecx, ebp
call edx
test eax, eax
jbe 0x41c1fd
mov dword [esp + 0x34], 0
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x34]
push ecx
mov ecx, ebp
call edx
test eax, eax
je 0x41c1fd
mov edi, dword [esp + 0x34]
test edi, edi
jbe 0x41c1fd
lea ecx, [esp + 0x94]
push ecx
lea esi, [esp + 0x3c]
mov ecx, eax
mov dword [esp + 0x3c], 0
call fcn.004154c0
test al, al
je 0x41c293
mov esi, dword [esp + 0x9c]
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
test eax, eax
ja 0x41c198
mov eax, dword [ebp]
mov edx, dword [eax + 0x1c]
mov ecx, ebp
call edx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x54]
push eax
mov eax, dword [esi + 0x50]
push ecx
mov ecx, dword [esi + 0x4c]
push edx
mov edx, dword [esi + 0x48]
push eax
push ecx
push edx
lea eax, [esp + 0xac]
call fcn.00415650
mov esi, dword [esp + 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
test eax, eax
je 0x41c250
or esi, 0xffffffff
lea ecx, [esp + 0x54]
call fcn.0040ca60
cmp esi, 0xffffffff
je 0x41c261
push esi
call edi
lea eax, [esp + 0xa0]
mov dword [esp + 0x8c], 0xffffffff
call fcn.00419340
mov al, 1
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x14
mov esi, dword [ebx]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x98]
mov edx, dword [esi]
push eax
push ecx
push 0x10000003
mov ecx, ebx
call edx
test al, al
lea ecx, [esp + 0x54]
je 0x41c2cd
call fcn.0040ca60
lea esi, [esp + 0x94]
call fcn.00415460
jmp 0x41c261
call fcn.0040ca60
lea esi, [esp + 0x94]
call fcn.00415460
jmp 0x41c040