Function at 0x49c850
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
push 1
call fcn.0049c4c0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49c87f
xor eax, eax
jmp 0x49caa2
mov edx, dword [ebp - 8]
mov dword [edx + 0x288], 0xf4240
mov eax, dword [ebp - 8]
mov dword [eax + 0x28c], 0xf4240
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x290], 0
push 0x40
push 0x4d4fc0
mov edx, dword [ebp - 8]
push edx
call fcn.0049c350
add esp, 0xc
push 0
push eax
call fcn.004d5080
add esp, 8
test eax, eax
je 0x49c8d0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0049c7d0
add esp, 0x10
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049c450
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00497530
add esp, 8
test eax, eax
jne 0x49c91b
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x49c960
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xb4], 0x2000
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049c780
add esp, 8
mov edx, dword [ebp - 8]
mov dword [edx + 0xb0], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xb0], 0
jne 0x49c960
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x98], 0x4973b0
mov edx, dword [ebp - 8]
mov dword [edx + 0x9c], fcn.00497430
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xa0], eax
cmp dword [ebp - 4], 0
jne 0x49ca2a
push 0x38
push 0x7692f8
mov edx, dword [ebp - 8]
add edx, 0x78
push edx
call fcn.004bb790
add esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add eax, 6
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 6
ja case.0x49c9bb.1
mov ecx, dword [ebp - 0xc]
jmp dword [ecx*4 + 0x49caa8]
jmp 0x49ca2a
push str.zlib_memory_error
mov edx, dword [ebp - 8]
push edx
call fcn.0049bd30
add esp, 8
mov dword [ebp - 4], 1
jmp 0x49ca2a
push str.zlib_stream_error
mov eax, dword [ebp - 8]
push eax
call fcn.0049bd30
add esp, 8
mov dword [ebp - 4], 1
jmp 0x49ca2a
push str.zlib_version_error
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049bd30
add esp, 8
mov dword [ebp - 4], 1
jmp 0x49ca2a
push str.Unknown_zlib_error
mov edx, dword [ebp - 8]
push edx
call fcn.0049bd30
add esp, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
je 0x49ca6b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xb0]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0049c710
add esp, 8
mov eax, dword [ebp - 8]
mov dword [eax + 0xb0], 0
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0049c5a0
add esp, 0xc
xor eax, eax
jmp 0x49caa2
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb0]
mov dword [ecx + 0x84], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xb4]
mov dword [ecx + 0x88], eax
push 0
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.0049e390
add esp, 0xc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret