Function at 0x560c10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov esi, edx
sub esp, 0x4c
mov edi, dword [esp + 0x7c]
mov dword [esp + 0x2c], ecx
and edi, 4
je 0x560c33
cmp dword [esp + 0x60], 2
jne 0x560eb0
mov dword [esp], 0x28
call sym.__gpgrt_malloc
test eax, eax
mov ebx, eax
je 0x560ebc
mov dword [esp], 0x2080
call sym.__gpgrt_malloc
test eax, eax
je 0x560e1f
lea edx, [eax + 0x2000]
test edi, edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0x2000
mov dword [ebx + 0x1c], 0x10
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x24], eax
je 0x560d0d
mov eax, dword [esp + 0x64]
mov dword [esp + 0x1c], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call dbg._gpgrt_w32_pollable_create
test eax, eax
mov esi, eax
jne 0x560e24
mov eax, dword [dbg.func_w32_pollable_read]
and dword [esp + 0x78], 0xbfffffff
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x60], 5
mov dword [esp + 0x64], eax
mov eax, dword [dbg.func_w32_pollable_write]
mov dword [esp + 0x68], eax
mov eax, dword [dbg.func_w32_pollable_seek]
mov dword [esp + 0x6c], eax
mov eax, dword [dbg.func_w32_pollable_destroy]
mov dword [esp + 0x70], eax
mov eax, dword [sym._func_w32_pollable_ioctl]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov eax, ebx
call dbg.init_stream_obj
mov edi, dword [ebx + 0x24]
test byte [edi + 0x2074], 0x20
je 0x560db5
mov esi, dword [esp + 0x80]
test esi, esi
je 0x560e03
mov esi, dword [0x743ab4]
test esi, esi
jne 0x560d8d
jmp 0x560e51
mov esi, dword [esi]
test esi, esi
je 0x560e51
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x560d83
mov edx, dword [esp + 0x80]
mov dword [esi + 4], ebx
test edx, edx
je 0x560e75
mov dword [ebp], ebx
xor esi, esi
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 0x2010], 0
mov dword [edi + 0x2030], 0
lea ecx, [edi + 0x2010]
add edi, 0x2014
xor eax, eax
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x24
shr ecx, 2
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x24]
add eax, 0x2010
mov dword [esp], eax
call dbg._gpgrt_lock_init
mov esi, dword [esp + 0x80]
test esi, esi
jne 0x560d74
mov dword [esp], 0x5c0000
call dbg._gpgrt_lock_lock
jmp 0x560d74
mov eax, dword [esp + 0x80]
test eax, eax
je 0x560e75
mov esi, 0xffffffff
mov eax, ebx
call dbg.deinit_stream_obj
mov eax, dword [ebx + 0x24]
test byte [eax + 0x2074], 0x20
je 0x560e90
mov dword [esp], eax
call sym.__gpgrt_free
mov dword [esp], ebx
call sym.__gpgrt_free
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 8
call sym.__gpgrt_malloc
test eax, eax
mov esi, eax
je 0x560e14
mov eax, dword [0x743ab4]
mov dword [0x743ab4], esi
mov dword [esi], eax
jmp 0x560d94
mov dword [esp], 0x5c0000
call dbg._gpgrt_lock_unlock
test esi, esi
jne 0x560da6
jmp 0x560e1f
add eax, 0x2010
mov dword [esp], eax
call dbg._gpgrt_lock_destroy
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x560e3f
jmp 0x560e37
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
mov esi, 0xffffffff
jmp 0x560dab