Function at 0x10034270
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x14], ebx
test eax, eax
jne 0x1003447f
mov eax, dword [edi + 0xc]
mov esi, dword [edi + 0x14]
test eax, eax
je 0x10034448
mov bx, word [eax + 0xa]
test bx, bx
jne 0x100342ae
xor ebx, ebx
jmp 0x100342b6
and ebx, 0xffff
add ebx, eax
xor edx, edx
xor ecx, ecx
mov dx, word [eax + 4]
mov cx, word [eax + 6]
xor esi, esi
add edx, eax
mov si, word [eax + 8]
add ecx, eax
add esi, eax
mov dword [ebp - 4], edx
test ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
jne 0x100342e3
mov dword [ebp - 8], ebx
jmp 0x10034380
xor eax, eax
mov ax, word [ebx + 0x46]
add eax, 0x9f
and al, 0xfc
call fcn.1006e670
mov edi, esp
push 0
push 0x20
push ebx
push edi
mov dword [ebp - 8], edi
call fcn.10030a30
lea esi, [ebx + 0x40]
add edi, 0x20
mov ecx, 9
push 0
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [ebp - 8]
lea eax, [ebx + 0x66]
push 0x20
push eax
lea ecx, [edi + 0x46]
push ecx
call fcn.10030a30
lea esi, [ebx + 0xa6]
add edi, 0x66
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov cx, word [ebx + 0x46]
test cx, cx
je 0x10034368
mov eax, dword [ebp - 8]
and ecx, 0xffff
mov edx, ecx
lea esi, [ebx + 0xdc]
lea edi, [eax + 0x9c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1003436b
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov word [eax + 0x24], 0x9c
mov dword [ebp - 8], eax
test esi, esi
jne 0x10034389
mov dword [ebp + 8], esi
jmp 0x100343b5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.1006e670
mov eax, esp
push 0
push ebx
push esi
push eax
call fcn.10030a30
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ebp + 8], eax
test ecx, ecx
jne 0x100343be
mov dword [ebp - 0x10], ecx
jmp 0x100343f6
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.1006e670
mov eax, dword [ebp - 0x10]
mov ebx, esp
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push eax
push 0
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], ebx
test edx, edx
jne 0x100343fe
xor ebx, ebx
jmp 0x10034430
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.1006e670
mov ecx, dword [ebp - 4]
mov ebx, esp
push 0
push 0
push esi
push ebx
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [ebx], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [ebp - 0x14]
jmp 0x1003446f
test esi, esi
je 0x1003445e
push 2
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp eax, 5
je 0x1003445e
mov eax, esi
jmp 0x1003446f
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ecx, dword [edi + 0x14]
xor edx, edx
cmp eax, ecx
mov dword [edi + 0x10], eax
setne dl
mov dword [ebp - 0x10], edx
mov eax, dword [edi + 0x18]
push 2
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [edi + 0x14]
push eax
mov dword [ebp - 0x1c], edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor ecx, ecx
cmp eax, 5
sete cl
mov eax, ecx
test eax, eax
mov dword [ebp - 0x18], eax
jne 0x10034503
mov eax, dword [edi + 0x10]
lea edx, [ebp - 0x28]
push 2
push edx
push eax
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [edi + 0x14]
push ecx
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [edi + 0x14]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetMapMode]
mov eax, dword [edi + 0x14]
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_SetWindowOrgEx]
mov ecx, dword [edi + 0x14]
push 0
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov dword [edi + 0x20], 1
lea edx, [ebp - 0x28]
mov dword [edi + 0x18], edx
mov eax, dword [ebx + 0x44]
test ah, 0x10
je 0x1003451f
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x20]
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], esi
jmp 0x1003452f
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
mov esi, ecx
mov edx, eax
mov eax, dword [edi + 0x28]
test eax, eax
jne 0x100345a9
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0x58
push ebx
mov dword [ebp + 8], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x5a
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edx, dword [ebp + 8]
mov ebx, eax
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
imul esi, dword [ebp - 0xc]
add esi, 0x4f6
mov eax, 0x6734d007
imul ebx, dword [ebp - 8]
imul esi
sar edx, 0xa
mov eax, edx
add ebx, 0x4f6
shr eax, 0x1f
add edx, eax
mov eax, 0x6734d007
mov dword [ebp - 0xc], edx
imul ebx
sar edx, 0xa
mov ebx, dword [ebp - 0x14]
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [ebp - 8], edx
mov esi, edx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov dword [edi + 0x2c], eax
test edx, edx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], esi
je 0x100345e4
test esi, esi
je 0x100345e4
test eax, eax
je 0x100345e4
test ecx, ecx
je 0x100345e4
cmp eax, edx
jne 0x100345db
cmp ecx, esi
je 0x100345f5
mov dword [edi + 0x24], 1
jmp 0x100345fc
mov eax, 1
mov dword [edi + 0x38], eax
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x24], 0
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0xc]
mov esi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10034617
mov eax, dword [edi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1003462a
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.GDI32.dll_RestoreDC]
lea esp, [ebp - 0x34]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4