Function at 0x424570
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x4ed310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2e0], ebx
mov dword [ebp - 0x2d0], ebx
push 0x2bc
mov dword [ebp - 0x2c8], ebx
mov dword [ebp - 0x2e4], 0x2bc
call fcn.00499b62
mov esi, eax
add esp, 4
mov dword [ebp - 0x2ec], esi
cmp esi, ebx
je 0x4245db
push 0x2bc
push ebx
push esi
call fcn.00499330
add esp, 0xc
mov dword [ebp - 0x2e8], esi
mov dword [ebp - 0x2c4], esi
mov ecx, dword [ebp - 0x2c4]
test ecx, ecx
je 0x42482b
mov edx, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2c4]
mov eax, 0xf4240
mov dword [edx + 0x288], eax
mov edx, dword [ebp - 0x2c4]
mov dword [ecx + 0x28c], eax
mov eax, dword [ebp - 0x2c4]
mov dword [edx + 0x290], ebx
mov dword [ebp - 0x2dc], eax
cmp eax, ebx
je 0x424637
mov dword [eax + 0x40], 0x49ba70
jmp 0x424639
xor eax, eax
push ebx
push eax
mov dword [ebp - 0x2d4], eax
call fcn.004b4940
add esp, 8
test eax, eax
je 0x424654
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 0x2c4]
cmp eax, ebx
je 0x424682
mov ecx, dword [ebp - 0x2d0]
mov edx, dword [ebp - 0x2e0]
mov dword [eax + 0x268], ecx
mov ecx, dword [ebp - 0x2cc]
mov dword [eax + 0x26c], edx
mov dword [eax + 0x270], ecx
mov eax, dword [ebp - 0x2c4]
cmp eax, ebx
je 0x42469e
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x4c], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x44], ecx
mov dword [eax + 0x48], edx
mov eax, dword [ebp - 0x2c4]
mov edi, dword [ebp - 0x2d8]
push eax
call fcn.00425d60
add esp, 4
mov edi, 1
test eax, eax
jne 0x4246c2
mov dword [ebp - 0x2c8], edi
mov ecx, dword [ebp - 0x2c8]
test ecx, ecx
jne 0x424713
mov edx, dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2c4]
mov dword [edx + 0xb4], 0x2000
mov ecx, dword [eax + 0xb4]
call fcn.00427b70
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2c4]
mov dword [ecx + 0xb0], eax
cmp dword [edx + 0xb0], ebx
jne 0x424713
mov dword [ebp - 0x2c8], edi
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [ebp - 0x2c4]
mov dword [eax + 0x98], 0x425c40
mov eax, dword [ebp - 0x2c4]
mov dword [ecx + 0x9c], 0x425cc0
mov ecx, dword [ebp - 0x2c8]
mov dword [eax + 0xa0], edx
test ecx, ecx
jne case.0x424765.0
mov eax, dword [ebp - 0x2c4]
add eax, 0x78
call fcn.004313a0
add eax, 6
cmp eax, 6
ja case.0x424765.5
jmp dword [eax*4 + 0x4248ac]
mov ecx, str.zlib_memory_error
jmp 0x424786
mov ecx, str.zlib_stream_error
jmp 0x424786
mov ecx, str.zlib_version_error
jmp 0x424786
mov ecx, str.Unknown_zlib_error
mov esi, dword [ebp - 0x2c4]
call fcn.00424150
mov dword [ebp - 0x2c8], edi
mov edx, dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x2c4]
test edx, edx
je 0x42483e
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x2c4]
cmp eax, ebx
je 0x4247da
cmp edx, ebx
je 0x4247da
mov ecx, dword [eax + 0x270]
push edx
cmp ecx, ebx
je 0x4247d2
push eax
call ecx
add esp, 8
jmp 0x4247da
call fcn.004993aa
add esp, 4
mov ecx, dword [ebp - 0x2c4]
mov eax, dword [ebp - 0x2c4]
mov dword [ecx + 0xb0], ebx
cmp eax, ebx
je 0x42482b
mov ecx, dword [ebp - 0x2cc]
push eax
cmp ecx, ebx
je 0x424823
mov edx, dword [ebp - 0x2d0]
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x58], edx
call ecx
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret
call fcn.004993aa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00499155
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c4]
mov edx, dword [eax + 0xb0]
mov eax, dword [ebp - 0x2c4]
mov dword [ecx + 0x84], edx
mov ecx, dword [ebp - 0x2c4]
mov esi, dword [ebp - 0x2c4]
mov edx, dword [eax + 0xb4]
mov dword [ecx + 0x88], edx
cmp esi, ebx
je 0x424894
mov dword [esi + 0x58], ebx
mov dword [esi + 0x54], 0x425ac0
cmp dword [esi + 0x50], ebx
je 0x42488e
mov ecx, str.Cant_set_both_read_data_fn_and_write_data_fn_in_the_same_structure
mov dword [esi + 0x50], ebx
call fcn.00424150
mov dword [esi + 0x160], ebx
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00499155
mov esp, ebp
pop ebp
ret