Function at 0x412e20
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x64916c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x108], eax
movzx eax, word [eax + 0x2fa]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
test ax, ax
je 0x4132ab
push edi
push eax
call fcn.00526830
mov edi, eax
add esp, 4
mov dword [ebp - 0xfc], edi
test edi, edi
je 0x4132aa
call fcn.005343b0
movzx ecx, word [ebx + 0x4d4]
push ecx
call fcn.00534400
movzx edx, word [ebx + 0x54e]
push edx
call fcn.00534400
movzx eax, word [ebx + 0x5c8]
push eax
call fcn.00534400
movzx ecx, word [ebx + 0x642]
push ecx
call fcn.00534400
movzx edx, word [ebx + 0x6bc]
push edx
call fcn.00534400
movzx eax, word [ebx + 0x736]
push eax
call fcn.00534400
movzx ecx, word [ebx + 0x7b0]
push ecx
call fcn.00534400
movzx edx, word [ebx + 0x82a]
push edx
call fcn.00534400
movzx eax, word [ebx + 0x8a4]
push eax
call fcn.00534400
movzx ecx, word [ebx + 0x91e]
push ecx
call fcn.00534400
movzx edx, word [ebx + 0x998]
push edx
call fcn.00534400
add esp, 0x2c
cmp byte [esi], 0
je 0x412f27
lea edi, [esi - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x412f10
mov ax, word [0x5c05a8]
mov word [edi], ax
mov edi, dword [ebp - 0xfc]
mov dword [ebp - 0xf4], 0
call fcn.005343a0
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
test eax, eax
je 0x41307a
xor ecx, ecx
test eax, eax
jle 0x41307a
mov edi, edi
lea eax, [ecx + 1]
lea ecx, [ebp - 0xf8]
push ecx
lea edx, reloc.MSVCRT.dll_strncpy
push edx
push eax
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
call fcn.005344c0
mov eax, dword [ebp - 0x108]
movzx ecx, word [eax + 0x2fa]
add esp, 0xc
cmp dword [ebp - reloc.MSVCRT.dll_strncpy], ecx
jne 0x413068
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xf4], eax
cmp eax, 2
jl 0x413068
movzx ecx, word [edi + 6]
cmp eax, ecx
jle 0x412fb4
mov eax, ecx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], ecx
test byte [ebp + 8], 1
je 0x413068
cmp eax, 2
jl 0x413068
movzx ecx, word [edi + eax*2 + 0x1a]
test ecx, ecx
je 0x412fe9
push ecx
call fcn.00527960
add esp, 4
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
test eax, eax
jne 0x412ff7
mov eax, dword [ebp - 0xf8]
dec eax
mov dword [ebp - 0xf8], eax
cmp eax, 2
jge 0x412fc7
jmp 0x413068
push 0xea
lea edx, [ebp - 0xf0]
push 0
push edx
call fcn.0059ea70
add esp, 0xc
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413010
mov cx, word [0x5c05ec]
mov word [eax], cx
mov dl, byte [0x5c05ee]
push 0
push 0
mov byte [eax + 2], dl
mov eax, dword [ebp - reloc.MSVCRT.dll_strncpy]
push 0
push 0xf
add eax, 4
push eax
lea ecx, [ebp - 0xf0]
push ecx
push esi
call fcn.00411560
add esp, 0x1c
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413050
mov dx, word [0x5c05a8]
mov word [edi], dx
mov edi, dword [ebp - 0xfc]
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
cmp ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
jl 0x412f50
cmp byte [esi], 0
je 0x413099
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413082
mov ax, word [0x5c05a8]
mov word [edi], ax
mov edi, dword [ebp - 0xfc]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4130a0
movzx ecx, word [edi + 6]
sub eax, edx
mov edx, dword [ebp - 0xf4]
mov dword [ebp - reloc.MSVCRT.dll_strncpy], eax
movzx eax, word [edi + 4]
push ecx
push edx
push eax
call fcn.00531d80
mov ecx, dword [ebp - reloc.MSVCRT.dll_strncpy]
add esp, 4
push eax
add ecx, esi
push 0x5c07e8
push ecx
call dword [fcn.005c02cc]
movzx edx, word [ebx + 0x4d4]
movzx eax, word [ebx + 0x54e]
movzx ecx, word [edi + 8]
push edx
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x4d4]
movzx eax, word [ebx + 0x54e]
movzx ecx, word [edi + 0xc]
push edx
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x7b0]
movzx eax, word [ebx + 0x736]
movzx ecx, word [edi + 0x18]
push edx
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x7b0]
movzx eax, word [ebx + 0x736]
movzx ecx, word [edi + 0x1a]
add esp, 0x44
push edx
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x5c8]
movzx eax, word [edi + 0xa]
push 0
push edx
push eax
push esi
call fcn.0040b480
movzx ecx, word [ebx + 0x8a4]
movzx edx, word [edi + 0xe]
push 0
push ecx
push edx
push esi
call fcn.0040b480
movzx eax, word [ebx + 0x91e]
movzx ecx, word [edi + 0x10]
push 0
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x82a]
movzx eax, word [edi + 0x12]
add esp, 0x40
push 0
push edx
push eax
push esi
call fcn.0040b480
movzx ecx, word [ebx + 0x642]
push 0
push ecx
movzx edx, word [edi + 0x14]
push edx
push esi
call fcn.0040b480
movzx eax, word [ebx + 0x6bc]
movzx ecx, word [edi + 0x16]
push 0
push eax
push ecx
push esi
call fcn.0040b480
movzx edx, word [ebx + 0x998]
movzx eax, word [edi + 0x1c]
push 0
push edx
push eax
push esi
call fcn.0040b480
add esp, 0x40
test byte [ebp + 8], 1
jne 0x4132aa
movzx eax, word [edi + 6]
cmp dword [ebp - 0xf4], eax
jge 0x4132aa
movzx ecx, word [edi + eax*2 + 0x1a]
push ecx
call fcn.00527960
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4132aa
lea edi, [esi - 1]
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x413220
mov dx, word [0x5c05a8]
mov eax, esi
mov word [edi], dx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413237
sub eax, edx
push 0x5f3e
lea edi, [esi + eax]
call fcn.00531d80
push eax
push 0x5c07e0
push edi
call dword [fcn.005c02cc]
push 0xea
lea eax, [ebp - 0xf0]
push 0
push eax
call fcn.0059ea70
add esp, 0x1c
lea eax, [esi - 1]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x413273
mov cx, word [0x5c05f0]
push 0
push 0
mov word [eax], cx
mov dl, byte [0x5c05f2]
push 0
push 0xf
mov byte [eax + 2], dl
add ebx, 4
push ebx
lea eax, [ebp - 0xf0]
push eax
push esi
call fcn.00411560
add esp, 0x1c
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0059ea5e
mov esp, ebp
pop ebp
ret