Function at 0x422f26
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x46005c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc0], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xb8], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xc8], esi
push edi
test eax, eax
je 0x423631
cmp dword [ebp + 8], 0
je 0x423631
test ebx, ebx
jne 0x422f77
mov eax, 0x80004003
jmp 0x423636
xor eax, eax
mov dword [ebx], eax
mov edi, eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0xa8]
push eax
push esi
call fcn.00422e81
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x422fc4
mov eax, 0x8007000e
jmp 0x423636
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x74]
xor eax, eax
inc eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0x80], eax
cmp eax, 2
jne 0x423003
push edi
call fcn.00438fbc
mov dword [ebp - 0x74], eax
pop ecx
test eax, eax
je 0x4235fc
push edi
push 0
push eax
call fcn.0043a2b0
mov esi, dword [ebp - 0x74]
add esp, 0xc
mov dword [ebx], esi
mov edx, dword [ebp - 0xc0]
xor ebx, ebx
movzx eax, word [edx]
lea ecx, [edx + 4]
cmp ax, word [ebp - 0xc4]
jne 0x42303a
mov eax, 0xffff
cmp word [edx + 2], ax
jne 0x42303a
mov ebx, dword [ecx]
xor eax, eax
inc eax
mov dword [ebp - 0xa0], eax
lea eax, [ecx + 4]
lea ecx, [eax + 4]
mov edx, ecx
jmp 0x423042
and dword [ebp - 0xa0], ebx
mov eax, ecx
mov edx, dword [edx]
mov dword [ebp - 0x88], edx
mov eax, dword [eax]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
movzx eax, word [ecx + 4]
mov dword [ebp - 0x94], eax
movzx eax, word [ecx + 6]
mov dword [ebp - 0x9c], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x90], eax
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x8c], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x98], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0x78], eax
push 2
cmp edx, 2
jne 0x423133
xor eax, eax
mov ecx, 0xffff
inc eax
mov word [esi], ax
mov eax, dword [ebp - 0x74]
pop esi
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
add eax, esi
mov dword [ebp - 0x74], eax
mov dword [eax], ebx
mov eax, dword [ebp - 0x74]
add eax, 4
mov dword [ebp - 0x74], eax
mov dword [eax], ecx
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x88]
add ecx, 4
mov dword [ebp - 0x74], ecx
or eax, 0x40
mov dword [ecx], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x94]
add eax, 4
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x9c]
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x90]
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x8c]
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x98]
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
add dword [ebp - 0x74], esi
jmp 0x423137
add edi, 0x1a
pop esi
sub edx, esi
lea eax, [ebp - 0x74]
neg edx
sbb ebx, ebx
xor esi, esi
not ebx
and ebx, eax
lea eax, [ebp - 0x78]
push esi
push eax
push ebx
mov dword [ebp - 0x9c], ebx
call fcn.00422dfe
add edi, eax
lea eax, [ebp - 0x78]
push esi
push eax
push ebx
call fcn.00422dfe
add edi, eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00422e4a
add esp, 0x20
add edi, eax
test byte [ebp - 0x88], 0x40
je 0x4231a1
mov eax, dword [ebp - 0x78]
add eax, 2
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0xa0], esi
je 0x423195
add eax, 4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push esi
call fcn.00422e4a
pop ecx
pop ecx
push 0x5a
push dword [ebp - 0xac]
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, eax
mov eax, 0x5a0
cdq
idiv ecx
mov esi, eax
lea eax, [ebp - 0x70]
push eax
push 0x5c
push dword [ebp - 0xc8]
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [ebp - 0x80], 2
movzx eax, word [ebp - 0x60]
mov dword [ebp - 0x7c], eax
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x81], al
mov al, byte [ebp - 0x59]
mov byte [ebp - 0x82], al
jne 0x423236
imul esi, dword [ebp - 0x70]
xor edx, edx
push 0x14
pop ecx
neg esi
movzx eax, si
div ecx
mov ecx, dword [ebp - 0x74]
mov word [ecx], ax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
add eax, 2
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov cl, byte [ebp - 0x81]
add eax, 2
mov dword [ebp - 0x74], eax
mov byte [eax], cl
mov eax, dword [ebp - 0x74]
mov cl, byte [ebp - 0x82]
inc eax
mov dword [ebp - 0x74], eax
mov byte [eax], cl
inc dword [ebp - 0x74]
jmp 0x423239
add edi, 6
lea eax, [ebp - 0x54]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call fcn.00422e4a
mov esi, dword [ebp - 0x74]
add edi, eax
cmp dword [ebp - 0x80], 2
pop ecx
pop ecx
jne 0x423261
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x74], esi
jmp 0x423267
add edi, 3
and edi, 0xfffffffc
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x94]
add eax, 3
and eax, 0xfffffffc
test bx, bx
je 0x4235e5
mov ecx, eax
mov edx, eax
add ebx, 0xffff
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0x94], ebx
je 0x4232d9
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov eax, dword [eax]
mov dword [ebp - 0x78], edx
movzx edx, word [ecx + 0xc]
mov dword [ebp - 0xb0], edx
movzx edx, word [ecx + 0xe]
mov dword [ebp - 0xb4], edx
movzx edx, word [ecx + 0x10]
mov dword [ebp - 0x98], edx
movzx edx, word [ecx + 0x12]
mov dword [ebp - 0x8c], edx
mov edx, dword [ecx + 0x14]
add ecx, 0x18
mov dword [ebp - 0x90], edx
jmp 0x423318
mov ebx, dword [eax]
mov eax, dword [edx + 4]
movzx ecx, word [edx + 0x10]
mov dword [ebp - 0x78], eax
movzx eax, word [edx + 8]
mov dword [ebp - 0xb0], eax
movzx eax, word [edx + 0xa]
mov dword [ebp - 0xb4], eax
movzx eax, word [edx + 0xc]
mov dword [ebp - 0x98], eax
movzx eax, word [edx + 0xe]
mov dword [ebp - 0x8c], eax
xor eax, eax
mov dword [ebp - 0x90], ecx
lea ecx, [edx + 0x12]
mov edx, dword [ebp - 0x78]
mov dword [ebp - 0x78], ecx
xor ecx, ecx
cmp dword [ebp - 0x80], 2
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x7c], ecx
jne 0x4233b8
mov dword [esi], eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xb0]
add eax, 4
mov dword [ebp - 0x74], eax
mov dword [eax], edx
mov eax, dword [ebp - 0x74]
add eax, 4
mov dword [ebp - 0x74], eax
mov dword [eax], ebx
mov eax, dword [ebp - 0x74]
add eax, 4
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xb4]
add eax, 2
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x98]
add ecx, 2
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x88], ecx
mov word [ecx], ax
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x8c]
add ecx, 2
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x7c], ecx
mov word [ecx], ax
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x90]
add eax, 2
mov dword [ebp - 0x74], eax
mov dword [eax], ecx
mov esi, dword [ebp - 0x74]
add esi, 4
mov dword [ebp - 0x74], esi
jmp 0x4233bb
add edi, 0x18
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x9c]
call fcn.00422dfe
add edi, eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x9c]
call fcn.00422dfe
add edi, eax
add esp, 0x18
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x423445
test esi, esi
je 0x423445
mov eax, 0x403d04
mov cx, word [esi]
cmp cx, word [eax]
jne 0x423436
test cx, cx
je 0x423432
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x423436
add esi, 4
add eax, 4
test cx, cx
jne 0x423410
xor eax, eax
jmp 0x42343d
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
je 0x42355e
cmp dword [ebp - 0x80], 2
jne 0x42355e
cmp dword [ebp - 0xd0], 0
jne 0x42355e
mov esi, dword [ebp - 0x90]
test esi, esi
jne 0x42346b
mov esi, 0x40108c
xor eax, eax
cmp word [esi], ax
je 0x42355e
mov eax, dword [ebp - 0x7c]
push 8
push dword [ebp - 0xa4]
movsx eax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [ebp - 0xa4]
lea ecx, [edx + edx]
cmp eax, ecx
jae 0x42355e
mov eax, dword [ebp - 0x88]
push 4
push dword [ebp - 0xa8]
movsx eax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x7c], eax
xor eax, eax
push 0x400
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0xffffffffffffffff
push esi
push dword [ebp - 0xac]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x42353e
shr eax, 0x10
mov ecx, 0x80
cmp ax, cx
jne 0x42353e
and ebx, 0xf
cmp ebx, 5
je 0x423520
cmp ebx, 6
je 0x423520
cmp ebx, 2
je 0x423520
cmp ebx, 3
je 0x423520
cmp ebx, 4
je 0x423520
cmp ebx, 9
je 0x423520
mov eax, dword [ebp - 0xc]
add eax, 5
mov dword [ebp - 0xc], eax
jmp 0x423541
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x31
call ebx
mov ecx, dword [ebp - 8]
cmp eax, ecx
jle 0x423537
push 0x31
call ebx
mov ecx, eax
mov eax, dword [ebp - 0xc]
add eax, ecx
jmp 0x42351b
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x7c], eax
jge 0x42355e
push dword [ebp - 0xa8]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x88]
mov word [ecx], ax
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x80]
movzx ecx, word [eax]
add eax, 2
mov dword [ebp - 0x7c], eax
cmp edx, 2
jne 0x423585
mov eax, dword [ebp - 0x74]
mov word [eax], cx
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x7c]
add esi, edx
mov dword [ebp - 0x74], esi
jmp 0x42358b
mov esi, dword [ebp - 0x74]
add edi, 2
test cx, cx
je 0x4235b6
mov ebx, ecx
cmp edx, 2
jne 0x4235b2
push ebx
push eax
push esi
call fcn.00439d30
mov esi, dword [ebp - 0x74]
add esp, 0xc
mov eax, dword [ebp - 0x7c]
add esi, ebx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], esi
jmp 0x4235b4
add edi, ebx
add eax, ebx
cmp edx, 2
jne 0x4235c6
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x74], esi
jmp 0x4235cc
add edi, 3
and edi, 0xfffffffc
mov ebx, dword [ebp - 0x94]
add eax, 3
and eax, 0xfffffffc
mov ecx, eax
mov edx, eax
test bx, bx
jne 0x423283
mov eax, dword [ebp - 0x80]
mov ebx, dword [ebp - 0xb8]
inc eax
mov dword [ebp - 0x80], eax
cmp eax, 2
jg 0x423606
jmp 0x422fdb
mov dword [ebp - 0xbc], 0x8007000e
push dword [ebp - 0xac]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0xbc], 0
jge 0x42362d
xor eax, eax
mov dword [ebx], eax
cmp dword [ebp - 0x74], eax
je 0x42362d
push dword [ebp - 0x74]
call fcn.00438fc5
pop ecx
xor eax, eax
jmp 0x423636
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438c2b
leave
ret