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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x53c
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x4ba], 0
mov word [ebp - 0x4bc], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x4e0], 0
mov dword [ebp - 0x4dc], 0
cmp dword [ebp + 8], 0
jne 0x4d79a1
mov eax, 0xffffffff
jmp 0x4d8158
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], edx
cmp dword [ebp + 0xc], 0
jne 0x4d79c5
mov eax, 0xfffffffe
jmp 0x4d8158
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._strlen
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4d79e3
mov eax, 0xfffffffe
jmp 0x4d8158
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4d7a10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4d7a0f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], 0
nop
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
cmp eax, 1
jne 0x4d7b7f
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._zip_strclone
mov edx, dword [ebp + 8]
mov dword [edx + 0x5c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x4d7a51
mov eax, 0xfffffffe
jmp 0x4d8158
cmp dword [ebp + 0x10], 0
je 0x4d7a60
mov dword [ebp - 0x20], 0x100
jmp 0x4d7a67
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._mz_zip_reader_locate_file
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
test eax, eax
jns 0x4d7aad
mov dword [ebp - 0x1c], 0xfffffffd
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x58]
mov edx, eax
lea eax, [ebp - 0x4b8]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._mz_zip_reader_file_stat
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x4d7ae3
mov dword [ebp - 0x1c], 0xfffffffd
jmp 0x4d8132
mov eax, dword [ebp - 0x498]
mov edx, dword [ebp - 0x494]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x68], eax
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x490]
mov edx, dword [ebp - 0x48c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], eax
mov dword [ecx + 0x64], edx
mov edx, dword [ebp - 0x4a0]
mov eax, dword [ebp + 8]
mov dword [eax + 0x70], edx
mov eax, dword [ebp - 0x4b0]
mov edx, dword [ebp - 0x4ac]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp - 0x480]
mov edx, dword [ebp - 0x47c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xa4], edx
movzx edx, word [ebp - 0x4a2]
mov eax, dword [ebp + 8]
mov word [eax + 0xa8], dx
mov edx, dword [ebp - 0x484]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4e008], edx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + 8]
mov dword [eax + 0x4e00c], edx
mov eax, 0
jmp 0x4d8158
mov dword [esp + 0xc], 0x2f
mov dword [esp + 8], 0x5c
mov eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._zip_strrpl
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
jne 0x4d7bbd
mov eax, 0xfffffffe
jmp 0x4d8158
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
and eax, 0xf
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x68], 0
mov dword [eax + 0x6c], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x70], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xa4], edx
mov eax, dword [ebp + 8]
sub eax, 0xffffff80
mov dword [esp + 8], 0x1e
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._memset
cmp dword [ebp - 0x34], 0
je 0x4d7c5d
mov eax, dword [ebp + 8]
mov word [eax + 0xa8], 8
jmp 0x4d7c69
mov eax, dword [ebp + 8]
mov word [eax + 0xa8], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x4e008], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._mz_zip_writer_compute_padding_needed_for_file_alignment
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
test eax, eax
jne 0x4d7c9a
mov dword [ebp - 0x1c], 0xfffffffc
jmp 0x4d8132
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x14]
cmp eax, 2
je 0x4d7cb1
mov dword [ebp - 0x1c], 0xfffffffc
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x50]
and eax, 0x400
test eax, eax
je 0x4d7ccc
mov dword [ebp - 0x1c], 0xfffffffb
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x38]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._mz_zip_writer_write_zeros
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4d7d04
mov dword [ebp - 0x1c], 0xfffffff9
jmp 0x4d8132
mov ecx, dword [ebp - 0x38]
mov ebx, 0
mov eax, dword [ebp - 0x4e0]
mov edx, dword [ebp - 0x4dc]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4dc], edx
mov dword [esp], 0
call sym._time
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x4e00c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x4e00c]
lea eax, [ebp - 0x4bc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x4ba]
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._mz_zip_time_t_to_dos_time
mov eax, dword [ebp - 0x4e0]
mov edx, dword [ebp - 0x4dc]
mov ebx, 0xfffffffe
mov ecx, 0
cmp ebx, eax
sbb ecx, edx
jae 0x4d7d8b
lea eax, [ebp - 0x4e0]
mov dword [ebp - 0x24], eax
jmp 0x4d7d92
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x4d8]
mov dword [esp], eax
call sym._mz_zip_writer_create_zip64_extra_data
mov dword [ebp - 0x30], eax
movzx eax, word [ebp - 0x4bc]
movzx edi, ax
movzx eax, word [ebp - 0x4ba]
movzx esi, ax
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0xa8]
movzx ecx, ax
mov eax, dword [ebp - 0x30]
movzx ebx, ax
mov eax, dword [ebp - 0x28]
movzx edx, ax
mov eax, dword [ebp + 8]
sub eax, 0xffffff80
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 0x808
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sym._mz_zip_writer_create_local_dir_header
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x4d7e55
mov dword [ebp - 0x1c], 0xfffffff9
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x78]
mov ebx, dword [eax + 0x7c]
mov eax, dword [ebp - 0x38]
mov edx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xa0], eax
mov dword [ecx + 0xa4], edx
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
lea edx, [eax + 0x80]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa0]
mov ebx, dword [eax + 0xa4]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x44]
mov dword [esp + 0x10], 0x1e
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp], eax
call esi
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x1e
je 0x4d7ecb
mov dword [ebp - 0x1c], 0xfffffff9
jmp 0x4d8132
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov edi, eax
xor edi, 0
mov dword [ebp - 0x4f8], edi
mov eax, edx
xor ah, 0
mov dword [ebp - 0x4f4], eax
mov ebx, dword [ebp - 0x4f8]
mov esi, dword [ebp - 0x4f4]
mov eax, esi
or eax, ebx
test eax, eax
je 0x4d7f98
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa0]
mov ebx, dword [eax + 0xa4]
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
add eax, 0xffffffff
adc edx, 0xffffffff
mov edi, ecx
and edi, eax
mov dword [ebp - 0x4f0], edi
mov edi, ebx
and edi, edx
mov dword [ebp - 0x4ec], edi
mov eax, dword [ebp - 0x4f0]
mov edx, dword [ebp - 0x4ec]
mov ebx, eax
xor bh, 0
mov dword [ebp - 0x500], ebx
mov eax, edx
xor ah, 0
mov dword [ebp - 0x4fc], eax
mov esi, dword [ebp - 0x500]
mov edi, dword [ebp - 0x4fc]
mov eax, edi
or eax, esi
test eax, eax
jne 0x4d7f73
mov dword [ebp - 0x48], 1
jmp 0x4d7f98
mov dword [esp + 8], 0x4c0
mov dword [esp + 4], str._home_anal_bot_zip_include_zip.c
mov dword [esp], str._zip__entry.header_offset___pzip__m_file_offset_alignment___1____0
mov eax, dword [dbg.init_wassert]
call eax
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x38]
add ecx, 0x1e
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x5c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x44]
mov edi, dword [ebp - 0x28]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [ebp - 0x28]
je 0x4d8003
mov dword [ebp - 0x1c], 0xfffffff8
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x28]
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x44]
mov esi, dword [ebp - 0x30]
mov dword [esp + 0x10], esi
lea esi, [ebp - 0x4d8]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebx
call ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x30]
je 0x4d806b
mov dword [ebp - 0x1c], 0xfffffff8
jmp 0x4d8132
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x30]
mov ebx, 0
add eax, ecx
adc edx, ebx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x78], eax
mov dword [ecx + 0x7c], edx
cmp dword [ebp - 0x34], 0
je 0x4d812b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x2c]
mov dword [eax + 0xb0], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x7c]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xb8], eax
mov dword [ecx + 0xbc], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0xc0], 0
mov dword [eax + 0xc4], 0
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], 0
mov dword [esp + 4], 0xfffffff1
mov dword [esp], eax
call sym._tdefl_create_comp_flags_from_zip_params
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp + 8]
lea ecx, [edx + 0xb0]
mov edx, dword [ebp + 8]
add edx, 0xc8
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], sym._mz_zip_writer_add_put_buf_callback
mov dword [esp], edx
call sym._tdefl_init
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4d812b
mov dword [ebp - 0x1c], 0xfffffff7
jmp 0x4d8132
mov eax, 0
jmp 0x4d8158
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4d8154
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
mov dword [esp], eax
call sym._free
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], 0
nop
mov eax, dword [ebp - 0x1c]
add esp, 0x53c
pop ebx
pop esi
pop edi
pop ebp
ret