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

Disassembly:
push ebp
push edi
xor edi, edi
push esi
xor esi, esi
push ebx
mov ebx, ecx
sub esp, 0x9c
mov dword [esp + 0x28], eax
xor eax, eax
mov ebp, dword [esp + 0xb0]
mov word [esp + 0x3e], si
lea esi, [ecx + 4]
mov word [esp + 0x40], di
mov edi, esi
mov word [esp + 0x42], ax
xor eax, eax
and edi, 0xfffffffc
mov word [esp + 0x44], ax
xor eax, eax
mov word [esp + 0x46], ax
xor eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [ecx], 0
mov dword [ecx + 0x54], 0
sub ecx, edi
add ecx, 0x58
shr ecx, 2
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym._mz_stream_read_uint32
mov dword [esp + 0x18], eax
cmp eax, 0xffffff9b
je 0x4646ae
mov eax, dword [esp + 0x4c]
lea edx, [eax - 0x6054b50]
and edx, 0xfffeffff
jne 0x4646c8
mov dword [esp + 0x18], 0xffffff9c
mov eax, dword [esp + 0x18]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [esp + 0x1c], 0
je 0x4646f8
cmp eax, 0x4034b50
je 0x464858
mov dword [esp + 0x18], 0xffffff99
mov eax, dword [esp + 0x18]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x2014b50
jne 0x4646da
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x4646b6
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
je 0x464864
mov eax, dword [esp + 0x54]
xor edx, edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
cmp byte [esp + 0x1c], 0
jne 0x4646b6
movzx eax, word [esp + 0x46]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x38], eax
movzx edx, word [ebx + 0x2a]
movzx eax, word [ebx + 0x28]
mov ecx, dword [esp + 0x18]
add eax, edx
movzx edx, word [ebx + 0x2c]
lea eax, [eax + edx + 3]
cdq
test ecx, ecx
jne 0x4646b6
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], ebp
call sym._mz_stream_seek
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4646b6
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
call sym._mz_stream_seek
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4646b6
cmp word [ebx + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jne 0x464b00
cmp word [ebx + 0x2a], 0
jne 0x464ab0
cmp word [ebx + 0x2c], 0
je 0x4646b6
lea eax, [ebx + 0x50]
mov edx, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._mz_stream_mem_get_buffer_at
movzx eax, word [ebx + 0x2c]
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call sym._mz_stream_copy
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4646b6
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._mz_stream_write_uint8
mov dword [esp + 0x18], eax
jmp 0x4646b6
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4646b6
mov edi, dword [esp + 0x28]
lea eax, [ebx + 2]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464723
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464723
lea eax, [ebx + 6]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464723
lea eax, [esp + 0x50]
mov dword [esp], edi
mov dword [esp + 4], eax
mov dword [esp + 0x28], edi
xor edi, edi
call sym._mz_stream_read_uint32
mov ecx, dword [esp + 0x50]
mov edx, edi
mov dword [esp + 0x8c], 0xffffffff
mov dword [esp + 0x18], eax
mov eax, ecx
mov esi, ecx
shrd eax, edx, 0x10
mov edx, edi
shrd esi, edi, 5
and eax, 0x1f
mov dword [esp + 0x78], eax
mov eax, ecx
shrd eax, edx, 0x15
mov edx, edi
and eax, 0xf
sub eax, 1
movzx eax, ax
mov dword [esp + 0x7c], eax
mov eax, ecx
shrd eax, edx, 0x19
mov edx, edi
mov edi, esi
add eax, 0x50
and edi, 0x3f
movzx eax, ax
mov dword [esp + 0x70], edi
mov dword [esp + 0x80], eax
mov eax, ecx
add ecx, ecx
shrd eax, edx, 0xb
and ecx, 0x3e
and eax, 0x1f
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x74], eax
lea eax, [esp + 0x6c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_mktime]
mov edx, dword [esp + 0x18]
mov dword [ebx + 8], eax
test edx, edx
jne 0x464723
mov esi, dword [esp + 0x28]
lea eax, [ebx + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._mz_stream_read_uint32
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464723
mov eax, dword [esp + 0x28]
lea edi, [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._mz_stream_read_uint32
xor edx, edx
mov dword [esp + 0x18], eax
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
test esi, esi
jne 0x46472f
mov esi, dword [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._mz_stream_read_uint32
mov edx, dword [esp + 0x54]
mov dword [ebx + 0x24], 0
mov dword [esp + 0x18], eax
mov dword [ebx + 0x20], edx
test eax, eax
jne 0x464735
lea eax, [ebx + 0x28]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464735
mov esi, dword [esp + 0x28]
lea eax, [ebx + 0x2a]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._mz_stream_read_uint16
cmp byte [esp + 0x1c], 0
mov dword [esp + 0x18], eax
jne 0x464756
test eax, eax
jne 0x464740
lea eax, [ebx + 0x2c]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464740
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x46]
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
mov edx, eax
movzx eax, word [esp + 0x46]
mov dword [ebx + 0x30], eax
test edx, edx
jne 0x464748
lea eax, [ebx + 0x40]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464748
lea eax, [ebx + 0x44]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._mz_stream_read_uint32
mov dword [esp + 0x18], eax
test eax, eax
jne 0x464748
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._mz_stream_read_uint32
mov dword [esp + 0x18], eax
jmp 0x464748
lea eax, [ebx + 0x4c]
mov edx, dword [esp + 0x24]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._mz_stream_mem_get_buffer_at
movzx eax, word [ebx + 0x2a]
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call sym._mz_stream_copy
test eax, eax
je 0x464b60
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_mem_get_buffer
movzx eax, word [ebx + 0x28]
mov dword [esp], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
call sym._mz_stream_copy
test eax, eax
jne 0x464aeb
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._mz_stream_write_uint8
movzx edx, word [ebx + 0x28]
add edx, 1
mov dword [esp + 0x20], edx
sar edx, 0x1f
mov dword [esp + 0x24], edx
test eax, eax
je 0x4647e0
jmp 0x464aeb
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._mz_stream_write_uint8
test eax, eax
jne 0x464aeb
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], 0
mov dword [esp], ebp
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym._mz_stream_seek
movzx ecx, word [ebx + 0x2a]
mov esi, eax
lea eax, [ecx + 1]
cdq
add dword [esp + 0x20], eax
adc dword [esp + 0x24], edx
test esi, esi
jne 0x464f4d
mov dword [esp + 0x1c], 0
jmp 0x464c19
movzx eax, word [esp + 0x3e]
cmp ax, 1
je 0x464c90
cmp ax, 0xa
je 0x464d00
movzx eax, word [esp + 0x40]
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebp
call sym._mz_stream_seek
mov ecx, eax
mov edx, dword [esp + 0x1c]
movzx eax, word [esp + 0x40]
lea eax, [edx + eax + 4]
mov dword [esp + 0x1c], eax
test ecx, ecx
jne 0x464c9e
movzx ecx, word [ebx + 0x2a]
cmp ecx, dword [esp + 0x1c]
jbe 0x4647eb
lea esi, [esp + 0x3e]
lea edi, [ebx + 0x20]
mov dword [esp + 4], esi
mov dword [esp], ebp
call sym._mz_stream_read_uint16
mov ecx, eax
test eax, eax
jne 0x464bc0
lea eax, [esp + 0x40]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
mov ecx, eax
movzx eax, word [esp + 0x3e]
cmp ax, 1
jne 0x464bcf
test ecx, ecx
jne 0x464c90
mov eax, dword [ebx + 0x20]
not eax
or eax, dword [ebx + 0x24]
je 0x464e30
mov eax, dword [ebx + 0x18]
not eax
or eax, dword [ebx + 0x1c]
jne 0x464cb0
lea eax, [ebx + 0x18]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint64
mov ecx, eax
test eax, eax
je 0x464cb0
nop
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
mov dword [esp + 0x18], ecx
jmp 0x4646b6
mov eax, dword [ebx + 0x38]
not eax
or eax, dword [ebx + 0x3c]
je 0x464f20
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edx
cmp dword [ebx + 0x30], 0xffffffff
je 0x464f00
mov edx, dword [esp + 0x1c]
movzx eax, word [esp + 0x40]
lea eax, [edx + eax + 4]
mov dword [esp + 0x1c], eax
mov edx, eax
movzx eax, word [ebx + 0x2a]
cmp eax, edx
ja 0x464c2a
jmp 0x4647eb
lea eax, [esp + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint32
test eax, eax
jne 0x464aeb
mov dword [esp + 0x2c], ebx
mov esi, 4
jmp 0x464d6a
cmp word [esp + 0x42], 1
movzx eax, word [esp + 0x44]
jne 0x464d3b
cmp ax, 7
ja 0x464da0
mov dword [esp + 0xc], 1
mov dword [esp + 4], eax
mov dword [esp + 8], 0
mov dword [esp], ebp
call sym._mz_stream_seek
mov edi, eax
movzx eax, word [esp + 0x44]
lea esi, [esi + eax + 4]
test edi, edi
jne 0x464f56
movzx eax, word [esp + 0x40]
cmp eax, esi
jbe 0x464e10
lea edi, [esp + 0x42]
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._mz_stream_read_uint16
test eax, eax
jne 0x464d28
lea eax, [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
jmp 0x464d28
lea eax, [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint64
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], 0x989680
mov ebx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], 0
add eax, 0x2ac18000
adc edx, 0xfe624e21
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov edx, dword [esp + 0x2c]
mov dword [edx + 8], eax
test ebx, ebx
jne 0x464e28
movzx eax, word [esp + 0x44]
cmp ax, 0xf
ja 0x464e50
add eax, 4
movzx eax, ax
add esi, eax
movzx eax, word [esp + 0x40]
cmp eax, esi
ja 0x464d7b
lea esi, [esi]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
lea eax, [edx + eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x464c15
mov ecx, ebx
jmp 0x464c9e
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._mz_stream_read_uint64
mov ecx, eax
test eax, eax
je 0x464c6f
jmp 0x464c90
lea eax, [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint64
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], 0x989680
mov ebx, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], 0
add eax, 0x2ac18000
adc edx, 0xfe624e21
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov edx, dword [esp + 0x2c]
mov dword [edx + 0xc], eax
test ebx, ebx
jne 0x464e28
movzx eax, word [esp + 0x44]
cmp ax, 0x17
jbe 0x464df7
lea eax, [esp + 0x58]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint64
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], 0x989680
mov edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], 0
add eax, 0x2ac18000
adc edx, 0xfe624e21
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.___udivdi3
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x10], eax
jmp 0x464d59
lea eax, [ebx + 0x30]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint32
mov ecx, eax
jmp 0x464bfc
lea eax, [esp + 0x60]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint64
mov edx, dword [esp + 0x64]
mov ecx, eax
mov eax, dword [esp + 0x60]
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x38], eax
test ecx, ecx
je 0x464ccc
jmp 0x464c9e
mov dword [esp + 0x18], esi
jmp 0x4646b6
mov dword [esp + 0x18], edi
jmp 0x4646b6