Function at 0x10003450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov dword [ebp - 0x14], 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x1001959c], 0
jne case.default.0x100034a9
mov eax, dword [0x10019598]
push eax
call fcn.10003447
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x2c], ecx
cmp dword [ebp - 0x2c], 6
ja case.default.0x100034a9
mov edx, dword [ebp - 0x2c]
jmp dword [edx*4 + 0x100037ac]
mov eax, dword [ebp - 0x18]
and eax, 0xffff
cmp eax, 0x5a4d
jne 0x100034db
mov dword [ebp - 4], 1
mov ecx, dword [0x100195a0]
sub ecx, 4
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 0x40
mov dword [ebp - 8], edx
jmp 0x100037a6
mov eax, dword [0x100195a0]
cmp eax, dword [ebp - 8]
jb 0x1000352d
mov ecx, dword [0x100195a0]
cmp ecx, dword [ebp - 8]
ja 0x10003510
mov edx, dword [ebp - 0x18]
add edx, 4
mov eax, dword [0x100195a0]
sub eax, dword [ebp - 0x10]
cmp edx, eax
jb 0x10003510
cmp dword [ebp - 0x18], 0x1000
jbe 0x10003519
mov dword [ebp - 4], 0
jmp 0x1000352d
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 4]
mov dword [ebp - 8], eax
jmp 0x100037a6
mov ecx, dword [0x100195a0]
cmp ecx, dword [ebp - 8]
jb 0x1000356c
mov edx, dword [0x100195a0]
cmp edx, dword [ebp - 8]
ja 0x10003551
cmp dword [ebp - 0x18], 0x4550
je 0x1000355a
mov dword [ebp - 4], 0
jmp 0x1000356c
mov dword [ebp - 4], 3
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 8], eax
jmp 0x100037a6
mov ecx, dword [0x100195a0]
cmp ecx, dword [ebp - 8]
jb 0x100035b9
mov edx, dword [0x100195a0]
cmp edx, dword [ebp - 8]
ja 0x1000359a
cmp dword [ebp - 0x18], 0
je 0x1000359a
mov eax, dword [0x100195a4]
shl eax, 3
cmp dword [ebp - 0x18], eax
jbe 0x100035a3
mov dword [ebp - 4], 0
jmp 0x100035b9
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
jmp 0x100037a6
mov eax, dword [0x100195a0]
cmp eax, dword [ebp - 8]
jb 0x10003603
mov ecx, dword [0x100195a0]
cmp ecx, dword [ebp - 8]
ja 0x100035ea
mov edx, dword [0x100195a0]
sub edx, dword [ebp - 0x10]
cmp dword [ebp - 0x18], edx
jbe 0x100035ea
cmp dword [ebp - 0x18], 0x10000
jbe 0x100035f3
mov dword [ebp - 4], 0
jmp 0x10003603
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
jmp 0x100037a6
mov ecx, dword [0x100195a0]
cmp ecx, dword [ebp - 8]
jb 0x1000362d
mov dword [ebp - 4], 6
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov dword [0x10019580], 1
jmp 0x100037a6
mov eax, dword [0x100195a0]
cmp eax, dword [ebp - 8]
jb 0x10003652
mov dword [ebp - 4], 0
mov dword [0x10019580], 0
jmp 0x100037a6
mov dword [ebp - 0x1c], 0
jmp 0x10003664
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xc
jae case.default.0x100034a9
mov edx, dword [ebp - 0x1c]
add edx, 2
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
xor ebx, ebx
cmp eax, 0xf
sete bl
mov eax, dword [ebp - 0x1c]
add eax, 2
push eax
mov ecx, 0x10019558
call fcn.1000b9e0
xor ecx, ecx
cmp eax, 0x66
sete cl
lea esi, [ebx + ecx*2]
mov edx, dword [ebp - 0x1c]
add edx, 2
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
xor ecx, ecx
cmp eax, 0x67
sete cl
imul ecx, ecx, 3
add esi, ecx
mov edx, dword [ebp - 0x1c]
add edx, 3
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
xor ecx, ecx
cmp eax, 0xf
sete cl
lea esi, [esi + ecx*4]
mov edx, dword [ebp - 0x1c]
add edx, 3
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
xor ecx, ecx
cmp eax, 0x66
sete cl
lea esi, [esi + ecx*8]
mov edx, dword [ebp - 0x1c]
add edx, 3
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
xor ecx, ecx
cmp eax, 0x67
sete cl
imul ecx, ecx, 0xc
add esi, ecx
mov dword [ebp - 0x28], esi
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
mov ecx, 0x10019558
call fcn.1000b9e0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x1c], 0
je 0x1000374c
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x10019558
call fcn.1000b9e0
and eax, 0xc7
mov dword [ebp - 0x30], eax
jmp 0x10003753
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
shl edx, 4
mov eax, dword [ebp - 0x28]
or eax, edx
mov ecx, dword [ebp - 0x20]
shl ecx, 0xc
or eax, ecx
mov edx, 4
cmp edx, dword [ebp - 0x1c]
sbb ecx, ecx
neg ecx
mov edx, dword [0x1001958c]
imul edx, ecx
shl edx, 0x14
or eax, edx
push eax
mov ecx, 0x10019460
call fcn.1000ba20
jmp 0x1000365b
cmp dword [ebp - 4], 6
jne 0x100037a6
mov ecx, 0x10019460
call fcn.1000202d
pop esi
pop ebx
mov esp, ebp
pop ebp
ret