Function at 0x48ff90
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 0x49005e
mov eax, dword [esp + 0x4c]
lea edx, [eax - 0x6054b50]
and edx, 0xfffeffff
jne 0x490078
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 0x4900a8
cmp eax, 0x4034b50
je 0x490208
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 0x49008a
mov edx, dword [esp + 0x18]
test edx, edx
jne 0x490066
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 0x490214
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 0x490066
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 0x490066
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 0x490066
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 0x490066
cmp word [ebx + 0x28], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jne 0x4904b0
cmp word [ebx + 0x2a], 0
jne 0x490460
cmp word [ebx + 0x2c], 0
je 0x490066
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 0x490066
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._mz_stream_write_uint8
mov dword [esp + 0x18], eax
jmp 0x490066
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x490066
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 0x4900d3
mov dword [esp + 4], esi
mov dword [esp], edi
call sym._mz_stream_read_uint16
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4900d3
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 0x4900d3
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 0x4900d3
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 0x4900d3
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 0x4900df
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 0x4900e5
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 0x4900e5
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 0x490106
test eax, eax
jne 0x4900f0
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 0x4900f0
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 0x4900f8
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 0x4900f8
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 0x4900f8
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._mz_stream_read_uint32
mov dword [esp + 0x18], eax
jmp 0x4900f8
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 0x490510
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 0x49049b
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 0x490190
jmp 0x49049b
mov dword [esp + 4], 0
mov dword [esp], ebp
call sym._mz_stream_write_uint8
test eax, eax
jne 0x49049b
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 0x4908fd
mov dword [esp + 0x1c], 0
jmp 0x4905c9
movzx eax, word [esp + 0x3e]
cmp ax, 1
je 0x490640
cmp ax, 0xa
je 0x4906b0
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 0x49064e
movzx ecx, word [ebx + 0x2a]
cmp ecx, dword [esp + 0x1c]
jbe 0x49019b
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 0x490570
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 0x49057f
test ecx, ecx
jne 0x490640
mov eax, dword [ebx + 0x20]
not eax
or eax, dword [ebx + 0x24]
je 0x4907e0
mov eax, dword [ebx + 0x18]
not eax
or eax, dword [ebx + 0x1c]
jne 0x490660
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 0x490660
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 0x490066
mov eax, dword [ebx + 0x38]
not eax
or eax, dword [ebx + 0x3c]
je 0x4908d0
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 0x4908b0
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 0x4905da
jmp 0x49019b
lea eax, [esp + 0x48]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint32
test eax, eax
jne 0x49049b
mov dword [esp + 0x2c], ebx
mov esi, 4
jmp 0x49071a
cmp word [esp + 0x42], 1
movzx eax, word [esp + 0x44]
jne 0x4906eb
cmp ax, 7
ja 0x490750
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 0x490906
movzx eax, word [esp + 0x40]
cmp eax, esi
jbe 0x4907c0
lea edi, [esp + 0x42]
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._mz_stream_read_uint16
test eax, eax
jne 0x4906d8
lea eax, [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint16
jmp 0x4906d8
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 0x4907d8
movzx eax, word [esp + 0x44]
cmp ax, 0xf
ja 0x490800
add eax, 4
movzx eax, ax
add esi, eax
movzx eax, word [esp + 0x40]
cmp eax, esi
ja 0x49072b
lea esi, [esi]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x2c]
lea eax, [edx + eax + 4]
mov dword [esp + 0x1c], eax
jmp 0x4905c5
mov ecx, ebx
jmp 0x49064e
mov dword [esp + 4], edi
mov dword [esp], ebp
call sym._mz_stream_read_uint64
mov ecx, eax
test eax, eax
je 0x49061f
jmp 0x490640
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 0x4907d8
movzx eax, word [esp + 0x44]
cmp ax, 0x17
jbe 0x4907a7
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 0x490709
lea eax, [ebx + 0x30]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sym._mz_stream_read_uint32
mov ecx, eax
jmp 0x4905ac
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 0x49067c
jmp 0x49064e
mov dword [esp + 0x18], esi
jmp 0x490066
mov dword [esp + 0x18], edi
jmp 0x490066