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

Disassembly:
push 0xffffffffffffffff
push 0x1034ae18
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10525930]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
or ebp, 0xffffffff
mov dword [esp + 0x200], edi
cmp dword [esi], ebp
je 0x1005b13d
mov dword [esp + 0x200], ebp
cmp dword [esp + 0x224], 0x10
jb 0x1005b110
mov eax, dword [esp + 0x210]
push eax
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x208]
mov dword [esp + 0x224], 0xf
mov dword [esp + 0x220], edi
mov byte [esp + 0x210], 0
call fcn.10001370
xor eax, eax
jmp 0x1005b788
mov eax, dword [esp + 0x210]
mov ebx, 0x10
cmp dword [esp + 0x224], ebx
jae 0x1005b159
lea eax, [esp + 0x210]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi], eax
cmp eax, ebp
jne 0x1005b73d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], 4
mov dword [esp + 0x1c], ecx
call fcn.1005c450
mov eax, dword [eax]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x24]
push ecx
mov esi, eax
call fcn.10016d30
mov edx, dword [eax]
mov dword [esp + 0x18], edx
mov dword [eax], edi
mov byte [esp + 0x200], 1
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x1005b1d0
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x18]
cmp eax, edi
je 0x1005b6da
lea eax, [esp + 0x2c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], fcn.100776d0
mov dword [esp + 0x4c], 0x100222b0
jmp 0x1005b200
push 0x104c2ef4
push 0x104cbc40
push str.__line:
sub esp, 0x20
mov ecx, esp
mov dword [esp + 0x15c], esp
push str.._common_zfile.cpp
call fcn.10003680
lea esi, [esp + 0xbc]
call fcn.100af830
add esp, 0x20
mov esi, eax
push 0x104c3ebc
lea ecx, [esp + 0xc0]
mov byte [esp + 0x210], 2
call fcn.10003680
push esi
push eax
lea ecx, [esp + 0x124]
push ecx
mov byte [esp + 0x218], 3
call fcn.10016ef0
add esp, 0xc
push eax
lea edx, [esp + 0x80]
push edx
mov byte [esp + 0x214], 4
call fcn.10016fa0
add esp, 0xc
push eax
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x210], 5
call fcn.10016fa0
add esp, 0xc
push eax
lea ecx, [esp + 0xf8]
push ecx
mov byte [esp + 0x20c], 6
call fcn.10016fa0
add esp, 0xc
mov ebp, eax
push str.CreateFile__new_file__last_error:_0x_x
lea edx, [esp + 0x144]
push edx
mov byte [esp + 0x208], 7
call fcn.100167c0
lea ecx, [esp + 0x44]
push ecx
mov edi, eax
mov byte [esp + 0x204], 8
call fcn.1001ec90
add esp, 4
lea edx, [esp + 0xd0]
mov ecx, eax
call fcn.100168d0
mov esi, eax
mov byte [esp + 0x200], 9
call fcn.1005c450
mov eax, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.10016de0
add esp, 0xc
mov byte [esp + 0x200], 0xa
mov ecx, dword [eax + 4]
mov eax, dword [esi + 0x18]
add ecx, 4
cmp dword [esi + 0x1c], ebx
jb 0x1005b334
mov esi, dword [esi + 8]
jmp 0x1005b337
add esi, 8
push esi
mov ebx, eax
call fcn.10013de0
mov ebx, dword [ebp + 0x18]
mov edi, 0x10
cmp dword [ebp + 0x1c], edi
jb 0x1005b351
mov ebp, dword [ebp + 8]
jmp 0x1005b354
add ebp, 8
push ebp
mov ecx, eax
call fcn.10013de0
lea ecx, [esp + 0x134]
mov byte [esp + 0x200], 9
call fcn.100132f0
mov byte [esp + 0x200], 8
cmp dword [esp + 0xec], edi
jb 0x1005b391
mov ecx, dword [esp + 0xd8]
push ecx
call fcn.1025a370
add esp, 4
xor ebx, ebx
mov esi, 0xf
push 3
lea ecx, [esp + 0x20]
mov dword [esp + 0xf0], esi
mov dword [esp + 0xec], ebx
mov byte [esp + 0xdc], bl
call fcn.10239250
mov eax, dword [esp + 0xd0]
cmp eax, 0xfffffffd
je 0x1005b3ee
cmp eax, ebx
je 0x1005b3e7
jmp 0x1005b3d0
mov dword [eax], ebx
mov edx, dword [esp + 0xd0]
mov eax, dword [edx + 4]
mov dword [esp + 0xd0], eax
cmp eax, ebx
jne 0x1005b3d0
mov dword [esp + 0xd0], ebx
lea ecx, [esp + 0x1c]
call fcn.10239290
lea eax, [esp + 0x140]
push eax
mov byte [esp + 0x204], 7
call fcn.1000b890
mov byte [esp + 0x200], 6
cmp dword [esp + 0x10c], edi
jb 0x1005b42d
mov ecx, dword [esp + 0xf8]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x40]
mov dword [esp + 0x110], esi
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
call fcn.10239250
mov eax, dword [esp + 0xf0]
cmp eax, 0xfffffffd
je 0x1005b47e
cmp eax, ebx
je 0x1005b477
lea ecx, [ecx]
mov dword [eax], ebx
mov edx, dword [esp + 0xf0]
mov eax, dword [edx + 4]
mov dword [esp + 0xf0], eax
cmp eax, ebx
jne 0x1005b460
mov dword [esp + 0xf0], ebx
lea ecx, [esp + 0x3c]
call fcn.10239290
mov byte [esp + 0x200], 5
cmp dword [esp + 0x6c], edi
jb 0x1005b4a2
mov eax, dword [esp + 0x58]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
call fcn.10239250
mov eax, dword [esp + 0x50]
cmp eax, 0xfffffffd
je 0x1005b4db
cmp eax, ebx
je 0x1005b4d7
mov dword [eax], ebx
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
cmp eax, ebx
jne 0x1005b4c6
mov dword [esp + 0x50], ebx
lea ecx, [esp + 0x34]
call fcn.10239290
mov byte [esp + 0x200], 4
cmp dword [esp + 0x8c], edi
jb 0x1005b502
mov edx, dword [esp + 0x78]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], esi
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.10239250
mov eax, dword [esp + 0x70]
cmp eax, 0xfffffffd
je 0x1005b545
cmp eax, ebx
je 0x1005b541
lea esp, [esp]
mov dword [eax], ebx
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 4]
mov dword [esp + 0x70], eax
cmp eax, ebx
jne 0x1005b530
mov dword [esp + 0x70], ebx
lea ecx, [esp + 0x28]
call fcn.10239290
mov byte [esp + 0x200], 3
cmp dword [esp + 0x12c], edi
jb 0x1005b56f
mov ecx, dword [esp + 0x118]
push ecx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.10239250
mov eax, dword [esp + 0x110]
cmp eax, 0xfffffffd
je 0x1005b5be
cmp eax, ebx
je 0x1005b5b7
nop
mov dword [eax], ebx
mov edx, dword [esp + 0x110]
mov eax, dword [edx + 4]
mov dword [esp + 0x110], eax
cmp eax, ebx
jne 0x1005b5a0
mov dword [esp + 0x110], ebx
lea ecx, [esp + 0x30]
call fcn.10239290
mov byte [esp + 0x200], 2
cmp dword [esp + 0xcc], edi
jb 0x1005b5e8
mov eax, dword [esp + 0xb8]
push eax
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x3c]
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov byte [esp + 0xbc], bl
call fcn.10239250
mov eax, dword [esp + 0xb0]
cmp eax, 0xfffffffd
je 0x1005b63e
cmp eax, ebx
je 0x1005b637
jmp 0x1005b620
mov dword [eax], ebx
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx + 4]
mov dword [esp + 0xb0], eax
cmp eax, ebx
jne 0x1005b620
mov dword [esp + 0xb0], ebx
lea ecx, [esp + 0x38]
call fcn.10239290
mov byte [esp + 0x200], 1
cmp dword [esp + 0xac], edi
jb 0x1005b668
mov edx, dword [esp + 0x98]
push edx
call fcn.1025a370
add esp, 4
push 3
lea ecx, [esp + 0x28]
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], ebx
mov byte [esp + 0x9c], bl
call fcn.10239250
mov eax, dword [esp + 0x90]
cmp eax, 0xfffffffd
je 0x1005b6be
cmp eax, ebx
je 0x1005b6b7
jmp 0x1005b6a0
mov dword [eax], ebx
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 4]
mov dword [esp + 0x90], eax
cmp eax, ebx
jne 0x1005b6a0
mov dword [esp + 0x90], ebx
lea ecx, [esp + 0x24]
call fcn.10239290
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov ebx, edi
jne 0x1005b200
or ebp, 0xffffffff
xor edi, edi
mov byte [esp + 0x200], 0
cmp eax, edi
je 0x1005b6f3
push eax
call fcn.1029f770
add esp, 4
mov dword [esp + 0x18], edi
mov dword [esp + 0x200], ebp
cmp dword [esp + 0x224], ebx
jb 0x1005b713
mov ecx, dword [esp + 0x210]
push ecx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x208]
mov dword [esp + 0x224], 0xf
mov dword [esp + 0x220], edi
mov byte [esp + 0x210], 0
call fcn.10001370
xor eax, eax
jmp 0x1005b788
mov dword [esp + 0x200], ebp
cmp dword [esp + 0x224], ebx
jb 0x1005b75d
mov edx, dword [esp + 0x210]
push edx
call fcn.1025a370
add esp, 4
lea ecx, [esp + 0x208]
mov dword [esp + 0x224], 0xf
mov dword [esp + 0x220], edi
mov byte [esp + 0x210], 0
call fcn.10001370
mov eax, 1
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f0
ret 0x20