Function at 0x107020d
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov eax, dword [0x10b30cc]
mov esi, 0x10b30cc
cmp eax, esi
mov ebx, 0x10069ec
je 0x107024a
test byte [eax + 0x1c], 1
je 0x107024a
cmp byte [eax + 0x19], 5
jb 0x107024a
push dword [ebp + 8]
push ebx
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
and word [ebp - 0x20], 0
and dword [ebp - 8], 0
push edi
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x58
stosw word es:[edi], ax
call fcn.0107a468
test eax, eax
pop ecx
je 0x1070276
mov ecx, eax
call fcn.0106ebdc
mov dword [ebp - 4], eax
jmp 0x107027a
and dword [ebp - 4], 0
cmp dword [ebp - 4], 0
jne 0x1070287
mov dword [ebp - 8], 0x8007000e
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x10702c5
test byte [eax + 0x1c], 2
je 0x10702c5
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 8], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10702c5
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104cb2f
mov eax, dword [0x10b30cc]
and dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
jl 0x1070989
cmp dword [ebp - 0xc], 0x17
jae 0x1070963
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
shl edi, 3
push dword [edi + 0x10b3698]
push eax
call dword [ecx + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x107033b
test byte [eax + 0x1c], 2
je 0x107033b
cmp byte [eax + 0x19], 5
jb 0x107033b
movzx edx, word [ebp - 0x20]
mov ecx, dword [edi + 0x10b3698]
push edx
movzx edx, word [edi + 0x10b369c]
push edx
push dword [ebp - 8]
push dword [ecx + 0x10]
push ecx
push ebx
push 0x3f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106cf33
mov eax, dword [0x10b30cc]
cmp dword [ebp - 8], 0
jne 0x107091f
cmp word [ebp - 0x20], 0
je 0x107091f
movzx ecx, word [edi + 0x10b369c]
cmp cx, word [ebp - 0x20]
je 0x10703a6
mov dword [ebp - 8], 0x8000ffff
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 2
jb 0x1070947
movzx edx, word [ebp - 0x20]
mov edi, dword [edi + 0x10b3698]
push edx
movzx ecx, cx
push ecx
push dword [edi + 0x10]
push edi
push ebx
push 0x40
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106cef6
jmp 0x1070947
mov ecx, dword [ebp - 0xc]
cmp ecx, 0x16
ja case.default.0x10703b2
jmp dword [ecx*4 + 0x10709d9]
mov ecx, dword [ebp - 4]
push dword [ebp - 0x18]
add ecx, 0x10
call fcn.010278b6
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01026c2b
jmp 0x1070947
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 4], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x1070947
mov ecx, dword [ebp - 4]
push dword [ebp - 0x18]
add ecx, 8
call fcn.010278b6
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x43
jmp 0x10703ee
mov ecx, dword [ebp - 4]
push dword [ebp - 0x18]
add ecx, 0xc
call fcn.010278b6
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x44
jmp 0x10703ee
cmp word [ebp - 0x18], 0
je 0x10704cc
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 1
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
push ecx
push ebx
push 0x45
jmp 0x1070432
cmp word [ebp - 0x18], 0
je 0x107050d
mov eax, dword [ebp - 4]
and dword [eax + 0x14], 0
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
push ecx
push ebx
push 0x46
jmp 0x1070432
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 0x18], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x47
jmp 0x1070432
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 0x1c], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x48
jmp 0x1070432
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 0x20], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x49
jmp 0x1070432
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 0x24], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x4a
jmp 0x1070432
mov ecx, dword [ebp - 4]
push dword [ebp - 0x18]
add ecx, 0x28
call fcn.010278b6
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x4b
jmp 0x10703ee
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x4c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
jmp 0x1070947
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x4d
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x34], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x4e
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x4f
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x3c], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x50
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x51
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x52
jmp 0x1070689
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push dword [ebp - 0x18]
push ebx
push 0x53
jmp 0x1070689
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp word [ebp - 0x18], cx
setne cl
mov dword [eax + 0x4c], ecx
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
push ecx
push ebx
push 0x54
jmp 0x1070432
mov ecx, 0xff
cmp dword [ebp - 0x18], ecx
ja 0x107084c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov byte [eax + 0x50], cl
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
movzx ecx, cl
push ecx
push ebx
push 0x55
jmp 0x1070689
mov ecx, 0xff
cmp dword [ebp - 0x18], ecx
ja 0x107088c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov byte [eax + 0x51], cl
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
movzx ecx, cl
push ecx
push ebx
push 0x56
jmp 0x1070689
mov ecx, 0xff
cmp dword [ebp - 0x18], ecx
ja 0x10708cc
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov byte [eax + 0x52], cl
mov eax, dword [0x10b30cc]
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
movzx ecx, cl
push ecx
push ebx
push 0x57
jmp 0x1070689
mov dword [ebp - 8], 0x8000ffff
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 2
jb 0x1070947
push 0
push dword [ebp - 0xc]
push ebx
push 0x58
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0104d9bc
jmp 0x1070947
cmp eax, esi
je 0x1070947
test byte [eax + 0x1c], 2
je 0x1070947
cmp byte [eax + 0x19], 5
jb 0x1070947
mov edi, dword [edi + 0x10b3698]
push dword [edi + 0x10]
push edi
push ebx
push 0x59
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0106cec5
lea eax, [ebp - 0x20]
push eax
call dword [0x1001594]
inc dword [ebp - 0xc]
cmp dword [ebp - 8], 0
mov eax, dword [0x10b30cc]
jge 0x10702d3
cmp dword [ebp - 8], 0
jl 0x1070989
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x60]
mov eax, dword [ebp - 4]
mov dword [eax], edx
inc dword [ecx + 0x60]
push eax
call fcn.0106f923
mov dword [ebp - 8], eax
test eax, eax
mov eax, dword [0x10b30cc]
jge 0x107099c
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x107099c
push 1
call fcn.0106f794
mov eax, dword [0x10b30cc]
cmp eax, esi
pop edi
je 0x10709ce
test byte [eax + 0x1c], 1
je 0x10709ce
movzx ecx, byte [eax + 0x19]
xor edx, edx
cmp dword [ebp - 8], edx
setl dl
dec edx
and edx, 3
inc edx
inc edx
cmp ecx, edx
jl 0x10709ce
push dword [ebp - 8]
push ebx
push 0x5a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01028164
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret 4