Function at 0x10030380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x100aa470]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x10], 0
jne 0x100303cd
push 0x7d
push str.src_sample_utils.cpp
push 0xfffffffffffffff8
push str._nReturn_on_error:_error_code__d__t_s_t_d_n_n
call fcn.1007325b
add esp, 0x10
pop esi
mov eax, 0xfffffff8
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 4
test ebx, ebx
jne 0x100303e6
pop esi
lea eax, [ebx - 2]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 4
movzx eax, word [ebx + 0x2c]
mov dword [ebp - 0x818], eax
mov eax, dword [ebx + 0x30]
cmp eax, 0x3231564e
je 0x10030418
cmp eax, 0x32315659
je 0x10030418
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 4
movzx ecx, word [ebx + 0x3e]
test cx, cx
je 0x1003043c
movzx eax, word [ebx + 0x3c]
test ax, ax
je 0x1003043c
mov edx, eax
mov eax, ecx
mov dword [ebp - 0x81c], edx
mov dword [ebp - 0x80c], eax
jmp 0x10030450
movzx ecx, word [ebx + 0x34]
movzx edx, word [ebx + 0x36]
mov dword [ebp - 0x81c], ecx
mov dword [ebp - 0x80c], edx
movzx eax, word [ebx + 0x86]
movzx edx, word [ebx + 0x38]
mov ecx, eax
mov dword [ebp - 0x820], ecx
movzx ecx, word [ebx + 0x3a]
imul ecx, eax
add ecx, dword [ebx + 0x88]
push edi
add ecx, edx
mov dx, word [ebp - 0x80c]
xor edi, edi
cmp di, dx
mov di, word [ebp - 0x81c]
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x808], 0
jae 0x1003051c
jmp 0x100304a6
mov ecx, dword [ebp - 0x810]
cmp byte [esi + 0x11], 0
jne 0x100304c2
mov edx, dword [esi + 8]
push edx
movzx edx, di
push edx
movzx edx, word [ebp - 0x808]
imul edx, eax
add edx, ecx
jmp 0x100304e3
mov edx, dword [ebp - 0x818]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + edx*4]
movzx edx, word [ebp - 0x808]
imul edx, eax
add edx, dword [ebp - 0x810]
push ecx
movzx ecx, di
push ecx
push 1
push edx
call fcn.10072306
movzx ecx, di
add esp, 0x10
cmp ecx, eax
jne 0x100308ee
mov eax, dword [ebp - 0x808]
inc eax
cmp ax, word [ebp - 0x80c]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x814]
jb 0x100304a0
mov dx, word [ebp - 0x80c]
mov ecx, dword [esi + 4]
sub ecx, 0x3231564e
je 0x10030845
sub ecx, 0xb
jne 0x100306df
mov ecx, dword [ebx + 0x30]
sub ecx, 0x3231564e
je 0x100306ad
sub ecx, 0xb
jne 0x100306df
mov ax, word [ebp - 0x820]
movzx ecx, word [ebx + 0x3a]
shr ax, 1
movzx eax, ax
shr ecx, 1
shr dx, 1
imul ecx, eax
mov word [ebp - 0x80c], dx
movzx edx, word [ebx + 0x38]
shr edx, 1
add edx, ecx
mov ecx, dword [ebx + 0x8c]
mov ebx, dword [ebx + 0x90]
add ecx, edx
add ebx, edx
xor edx, edx
shr di, 1
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x81c], ebx
mov dword [ebp - 0x808], 0
cmp dx, word [ebp - 0x80c]
jae 0x1003061e
jmp 0x100305b6
mov ecx, dword [ebp - 0x810]
cmp byte [esi + 0x11], 0
movzx ebx, di
jne 0x100305d1
mov edx, dword [esi + 8]
push edx
movzx edx, word [ebp - 0x808]
imul edx, eax
add edx, ecx
jmp 0x100305ee
mov edx, dword [ebp - 0x818]
mov ecx, dword [esi + 0xc]
mov ecx, dword [ecx + edx*4]
movzx edx, word [ebp - 0x808]
imul edx, eax
add edx, dword [ebp - 0x810]
push ecx
push ebx
push 1
push edx
call fcn.10072306
add esp, 0x10
cmp ebx, eax
jne 0x100308ee
mov eax, dword [ebp - 0x808]
inc eax
cmp ax, word [ebp - 0x80c]
mov dword [ebp - 0x808], eax
mov eax, dword [ebp - 0x814]
jb 0x100305b0
xor ecx, ecx
mov dword [ebp - 0x808], 0
cmp cx, word [ebp - 0x80c]
jb 0x10030656
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x814]
cmp byte [esi + 0x11], 0
movzx ebx, di
jne 0x10030664
mov edx, dword [esi + 8]
jmp 0x10030670
mov edx, dword [esi + 0xc]
mov ecx, dword [ebp - 0x818]
mov edx, dword [edx + ecx*4]
movzx ecx, word [ebp - 0x808]
imul ecx, eax
add ecx, dword [ebp - 0x81c]
push edx
push ebx
push 1
push ecx
call fcn.10072306
add esp, 0x10
cmp ebx, eax
jne 0x100308ee
mov eax, dword [ebp - 0x808]
inc eax
mov dword [ebp - 0x808], eax
cmp ax, word [ebp - 0x80c]
jb 0x10030650
jmp 0x10030633
movzx ecx, word [ebx + 0x3a]
shr ecx, 1
imul ecx, eax
add ecx, dword [ebx + 0x8c]
movzx eax, word [ebx + 0x38]
add ecx, eax
mov dword [ebp - 0x810], ecx
shr di, 1
shr dx, 1
mov ecx, 0x800
mov word [ebp - 0x80c], dx
cmp di, cx
jbe 0x100306f7
pop edi
pop esi
mov eax, 0xfffffffd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov dword [ebp - 0x808], 0
cmp ax, dx
jae 0x100307a2
lea esp, [esp]
cmp byte [esi + 0x11], 0
movzx ebx, di
jne 0x10030729
mov ecx, dword [esi + 8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x804]
push edx
jmp 0x10030740
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x818]
mov edx, dword [eax + ecx*4]
push edx
push ebx
push 1
lea eax, [ebp - 0x804]
push eax
call fcn.10072306
add esp, 0x10
cmp ebx, eax
jne 0x100308ee
xor ecx, ecx
test ebx, ebx
je 0x10030781
movzx eax, word [ebp - 0x808]
imul eax, dword [ebp - 0x814]
add eax, dword [ebp - 0x810]
lea ebx, [ebx]
mov dl, byte [ebp + ecx - 0x804]
mov byte [eax], dl
inc ecx
add eax, 2
cmp ecx, ebx
jb 0x10030770
mov eax, dword [ebp - 0x808]
inc eax
mov dword [ebp - 0x808], eax
cmp ax, word [ebp - 0x80c]
jb 0x10030710
mov dx, word [ebp - 0x80c]
xor eax, eax
mov dword [ebp - 0x808], 0
cmp ax, dx
jae 0x10030633
cmp byte [esi + 0x11], 0
movzx ebx, di
jne 0x100307d0
mov ecx, dword [esi + 8]
push ecx
push ebx
push 1
lea edx, [ebp - 0x804]
push edx
jmp 0x100307e7
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 0x818]
mov edx, dword [eax + ecx*4]
push edx
push ebx
push 1
lea eax, [ebp - 0x804]
push eax
call fcn.10072306
add esp, 0x10
cmp ebx, eax
jne 0x100308ee
xor eax, eax
test ebx, ebx
je 0x10030826
movzx ecx, word [ebp - 0x808]
imul ecx, dword [ebp - 0x814]
mov edx, dword [ebp - 0x810]
lea ecx, [ecx + edx + 1]
mov dl, byte [ebp + eax - 0x804]
mov byte [ecx], dl
inc eax
add ecx, 2
cmp eax, ebx
jb 0x10030815
mov eax, dword [ebp - 0x808]
inc eax
mov dword [ebp - 0x808], eax
cmp ax, word [ebp - 0x80c]
jb 0x100307b7
jmp 0x10030633
movzx ecx, word [ebx + 0x3a]
shr ecx, 1
imul ecx, eax
add ecx, dword [ebx + 0x8c]
movzx ebx, word [ebx + 0x38]
add ecx, ebx
shr dx, 1
xor ebx, ebx
mov word [ebp - 0x80c], dx
mov dword [ebp - 0x810], ecx
mov dword [ebp - 0x808], 0
cmp bx, dx
jae 0x10030633
jmp 0x1003089c
mov ecx, dword [ebp - 0x810]
mov eax, dword [ebp - 0x814]
cmp byte [esi + 0x11], 0
jne 0x100308a7
mov edx, dword [esi + 8]
jmp 0x100308b3
mov edx, dword [esi + 0xc]
mov ebx, dword [ebp - 0x818]
mov edx, dword [edx + ebx*4]
push edx
movzx edx, word [ebp - 0x808]
imul edx, eax
movzx ebx, di
push ebx
add edx, ecx
push 1
push edx
call fcn.10072306
add esp, 0x10
cmp ebx, eax
jne 0x100308ee
mov eax, dword [ebp - 0x808]
inc eax
mov dword [ebp - 0x808], eax
cmp ax, word [ebp - 0x80c]
jb 0x10030890
jmp 0x10030633
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0xfffffff6
pop ebx
call fcn.10040698
mov esp, ebp
pop ebp
ret 4