Function at 0x412960
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov ecx, dword [eax]
push 0x1c
push 0x4622d0
push ecx
call dword [0x46822c]
test eax, eax
je case.0x412b43.1
mov eax, dword [0x4622d4]
mov esi, eax
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], esi
jne case.0x412b43.1
mov ecx, dword [eax + 0x3c]
xor edi, edi
add ecx, eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x14], ecx
mov ax, word [ecx + 0x14]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
cmp word [ecx + 6], di
jbe 0x412a2d
test edi, edi
jne 0x4129e0
mov ecx, 7
mov edi, str..trace
mov esi, eax
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4129e0
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 1
jmp 0x412a04
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x412a04
mov ecx, 3
mov edi, str..text
mov esi, eax
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
jne 0x412a04
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], 1
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 8]
add eax, 0x28
xor ecx, ecx
mov dword [ebp - 4], eax
mov cx, word [esi + 6]
inc edx
cmp edx, ecx
jb 0x4129be
test edi, edi
je 0x412a2a
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 4], edx
jmp 0x412a41
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call fcn.00412e50
add esp, 4
test eax, eax
je case.0x412b43.1
mov eax, dword [ebp - 0x1c]
push esi
push eax
call fcn.00412e00
add esp, 8
cmp eax, 1
jne 0x412a71
mov edx, dword [ebp + 8]
mov edi, str.Unknown
or ecx, 0xffffffff
mov esi, str.Unknown
mov dword [edx], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x412d67
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 8]
cmp ebx, 0x10
jb case.0x412b43.1
test edi, edi
jne 0x412a89
mov edi, dword [eax + 0x14]
jmp 0x412a8c
mov edi, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
add edi, esi
xor eax, eax
mov esi, dword [ecx]
mov dword [ebp - 8], esi
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
add ecx, edx
mov edx, dword [edi + 0xc]
add eax, edx
cmp esi, ecx
jb 0x412acb
cmp eax, ebx
je case.0x412b43.1
add edi, edx
cmp byte [edi], 0
jne 0x412ac7
inc edi
inc eax
cmp eax, ebx
je case.0x412b43.1
cmp byte [edi], 0
je 0x412ab8
cmp esi, ecx
jae 0x412a98
lea eax, [edi + 1]
xor ebx, ebx
mov dword [ebp + 0xc], ebx
mov ecx, 0x10
mov dx, word [eax]
mov word [ebp + 0xc], dx
mov al, byte [eax + 2]
mov byte [ebp + 0xe], al
mov esi, dword [ebp + 0xc]
cmp esi, ebx
jbe 0x412b02
lea edx, [edi + 0x10]
mov ax, word [edx]
and eax, 0xffff
dec esi
lea ecx, [ecx + eax + 2]
lea edx, [edx + eax + 2]
jne 0x412aef
lea eax, [ecx + edi]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp + 0xc], ebx
xor esi, esi
cmp ecx, dword [edi + 0xc]
je case.0x412b43.1
xor edx, edx
mov dl, byte [eax]
mov ebx, edx
and ebx, 0xc0
sub ebx, 0x80
je 0x412c6e
sub ebx, 0x40
je 0x412c48
cmp edx, 9
ja case.0x412b43.1
jmp dword [edx*4 + 0x412dd0]
inc eax
inc ecx
jmp 0x412b10
mov edx, dword [eax + 1]
lea ecx, [edi + 0x10]
inc edx
mov dword [ebp - 0x10], edx
xor edx, edx
lea ebx, [ecx + 2]
mov dx, word [ecx]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edx
lea ecx, [ecx + edx + 2]
mov edx, dword [ebp - 0x10]
dec edx
mov dword [ebp - 0x10], edx
jne 0x412b58
add eax, 5
mov ecx, eax
sub ecx, edi
jmp 0x412b10
mov esi, dword [eax + 4]
mov ecx, dword [ebp - 8]
cmp ecx, esi
jb case.0x412b43.1
xor ecx, ecx
mov cx, word [eax + 2]
test ecx, ecx
mov dword [ebp - 0x1c], ecx
je 0x412b9d
lea edx, [eax + 8]
mov dword [ebp - 0xc], edx
lea eax, [eax + ecx + 8]
mov ecx, eax
sub ecx, edi
jmp 0x412b10
movsx ecx, byte [eax + 1]
mov edx, dword [ebp + 0xc]
add eax, 2
add edx, ecx
mov ecx, eax
mov dword [ebp + 0xc], edx
sub ecx, edi
jmp 0x412b10
movsx edx, word [eax + 1]
mov ecx, dword [ebp + 0xc]
add eax, 3
add ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, eax
sub ecx, edi
jmp 0x412b10
mov ecx, dword [eax + 1]
mov edx, dword [ebp + 0xc]
add eax, 5
add edx, ecx
mov ecx, eax
mov dword [ebp + 0xc], edx
sub ecx, edi
jmp 0x412b10
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + 1]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x412c8d
add eax, 2
mov ecx, eax
sub ecx, edi
jmp 0x412b10
xor ecx, ecx
mov cx, word [eax + 1]
lea esi, [esi + ecx + 1]
mov ecx, dword [ebp - 8]
cmp esi, ecx
jae 0x412c8d
add eax, 3
mov ecx, eax
sub ecx, edi
jmp 0x412b10
mov edx, dword [eax + 1]
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x412c8d
add eax, 5
mov ecx, eax
sub ecx, edi
jmp 0x412b10
movsx ecx, byte [eax + 1]
mov ebx, dword [ebp + 0xc]
and edx, 0x3f
add ebx, ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
mov dword [ebp + 0xc], ebx
cmp esi, ecx
jae 0x412c8d
add eax, 2
mov ecx, eax
sub ecx, edi
jmp 0x412b10
mov ecx, dword [ebp + 0xc]
and edx, 0x3f
inc ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 8]
lea esi, [esi + edx + 1]
cmp esi, ecx
jae 0x412c8d
inc eax
mov ecx, eax
sub ecx, edi
jmp 0x412b10
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0xa
lea eax, [ebx + 0x20c]
push eax
push ecx
call fcn.00431584
mov esi, dword [ebp - 0xc]
add esp, 0xc
test esi, esi
je 0x412cc9
mov eax, dword [ebp - 0x1c]
lea edi, [ebx + 4]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + ebx + 4], 0
jmp 0x412cee
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Unknown
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x412d1f
mov eax, dword [ebp - 0x18]
lea edi, [ebx + 0x108]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov byte [eax + ebx + 0x108], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov esi, str.Unknown
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ebx + 0x108]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, str.Unknown
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, str.Unknown
mov eax, ecx
lea edi, [edx + 4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, str.Unknown
mov eax, ecx
lea edi, [edx + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Unknown
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + 0x20c]
mov edx, ecx
mov esi, str.Unknown
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret