Function at 0x4243de
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x462060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0xbc], ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0xcc], esi
push edi
test eax, eax
je 0x424b15
cmp dword [ebp + 8], 0
je 0x424b15
test ebx, ebx
jne 0x42442f
mov eax, 0x80004003
jmp 0x424b1a
xor eax, eax
mov dword [ebx], eax
mov edi, eax
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
push eax
push esi
call fcn.0042433d
add esp, 0xc
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xb0], eax
test eax, eax
jne 0x42447c
mov eax, 0x8007000e
jmp 0x424b1a
push esi
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x74]
xor eax, eax
inc eax
mov dword [ebp - 0xc8], eax
mov edx, eax
mov dword [ebp - 0x80], eax
cmp edx, 2
jne 0x4244c0
push edi
call fcn.0043ad29
mov dword [ebp - 0x74], eax
pop ecx
test eax, eax
je 0x424ae0
push edi
push 0
push eax
call fcn.0043c020
mov esi, dword [ebp - 0x74]
add esp, 0xc
mov edx, dword [ebp - 0x80]
mov dword [ebx], esi
mov ebx, dword [ebp - 0xc4]
and dword [ebp - 0x88], 0
movzx eax, word [ebx]
lea ecx, [ebx + 4]
cmp ax, word [ebp - 0xc8]
jne 0x424502
mov eax, 0xffff
cmp word [ebx + 2], ax
jne 0x424502
xor eax, eax
inc eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx]
mov dword [ebp - 0x88], eax
lea eax, [ecx + 4]
lea ecx, [eax + 4]
mov ebx, ecx
jmp 0x42450b
and dword [ebp - 0xa4], 0
mov eax, ecx
mov eax, dword [eax]
mov ebx, dword [ebx]
mov dword [ebp - 0x78], eax
movzx eax, word [ecx + 4]
mov dword [ebp - 0x94], eax
movzx eax, word [ecx + 6]
mov dword [ebp - 0xa0], 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 - 0x9c], eax
lea eax, [ecx + 0xe]
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0x7c], eax
push 2
cmp edx, 2
jne 0x4245fb
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 - 0x88]
add eax, esi
mov dword [ebp - 0x74], eax
mov dword [eax], ecx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
add eax, 4
mov dword [ebp - 0x74], eax
mov dword [eax], ecx
mov eax, ebx
mov ecx, dword [ebp - 0x74]
or eax, 0x40
add ecx, 4
mov dword [ebp - 0x74], ecx
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 - 0xa0]
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 - 0x9c]
add eax, esi
mov dword [ebp - 0x74], eax
mov word [eax], cx
add dword [ebp - 0x74], esi
jmp 0x4245ff
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 - 0x7c]
push esi
push eax
push ebx
mov dword [ebp - 0xa0], ebx
call fcn.004242ba
add edi, eax
lea eax, [ebp - 0x7c]
push esi
push eax
push ebx
call fcn.004242ba
add edi, eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call fcn.00424306
add esp, 0x20
add edi, eax
test byte [ebp - 0x98], 0x40
je 0x424669
mov eax, dword [ebp - 0x7c]
add eax, 2
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0xa4], esi
je 0x42465d
add eax, 4
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.00424306
pop ecx
pop ecx
push 0x5a
push dword [ebp - 0xb0]
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 - 0xcc]
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [ebp - 0x80], 2
movzx eax, word [ebp - 0x60]
mov dword [ebp - 0x78], eax
mov al, byte [ebp - 0x5c]
mov byte [ebp - 0x81], al
mov al, byte [ebp - 0x59]
mov byte [ebp - 0x82], al
jne 0x4246fe
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 - 0x78]
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 0x424701
add edi, 6
lea eax, [ebp - 0x54]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
push ebx
call fcn.00424306
mov edx, dword [ebp - 0x80]
add edi, eax
mov esi, dword [ebp - 0x74]
pop ecx
pop ecx
cmp edx, 2
jne 0x42472b
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x74], esi
jmp 0x424731
add edi, 3
and edi, 0xfffffffc
mov eax, dword [ebp - 0x7c]
add eax, 3
and eax, 0xfffffffc
cmp word [ebp - 0x94], 0
je 0x424acc
mov ebx, dword [ebp - 0x94]
mov ecx, eax
mov dword [ebp - 0x78], eax
add ebx, 0xffff
cmp dword [ebp - 0xa4], 0
mov dword [ebp - 0x94], ebx
je 0x4247af
movzx edx, word [ecx + 0xc]
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0xb8], edx
movzx edx, word [ecx + 0xe]
mov dword [ebp - 0x98], edx
movzx edx, word [ecx + 0x10]
mov dword [ebp - 0x9c], edx
movzx edx, word [ecx + 0x12]
mov dword [ebp - 0x8c], edx
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xb4], ebx
mov ebx, dword [ecx + 8]
add ecx, 0x18
mov dword [ebp - 0x90], edx
mov edx, dword [ebp - 0x80]
jmp 0x4247f9
mov ebx, dword [eax]
mov eax, dword [ebp - 0x78]
and dword [ebp - 0x78], 0
mov ecx, dword [eax + 4]
mov dword [ebp - 0xb4], ecx
movzx ecx, word [eax + 8]
mov dword [ebp - 0xb8], ecx
movzx ecx, word [eax + 0xa]
mov dword [ebp - 0x98], ecx
movzx ecx, word [eax + 0xc]
mov dword [ebp - 0x9c], ecx
movzx ecx, word [eax + 0xe]
mov dword [ebp - 0x8c], ecx
movzx ecx, word [eax + 0x10]
mov dword [ebp - 0x90], ecx
lea ecx, [eax + 0x12]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x78], ecx
cmp edx, 2
jne 0x42489a
mov ecx, dword [ebp - 0xb4]
mov dword [esi], eax
mov eax, dword [ebp - 0x74]
push 4
pop edx
add eax, edx
mov dword [ebp - 0x74], eax
mov dword [eax], ecx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0xb8]
add eax, edx
mov dword [ebp - 0x74], eax
mov dword [eax], ebx
mov eax, dword [ebp - 0x74]
add eax, edx
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x98]
add eax, 2
mov dword [ebp - 0x74], eax
mov word [eax], cx
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x9c]
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 - 0x78], 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, edx
mov dword [ebp - 0x74], esi
jmp 0x42489d
add edi, 0x18
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0xa0]
call fcn.004242ba
add edi, eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0xa0]
call fcn.004242ba
add edi, eax
add esp, 0x18
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x8c], eax
test eax, eax
jne 0x424927
test esi, esi
je 0x424927
mov eax, 0x404364
mov cx, word [esi]
cmp cx, word [eax]
jne 0x424918
test cx, cx
je 0x424914
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x424918
add esi, 4
add eax, 4
test cx, cx
jne 0x4248f2
xor eax, eax
jmp 0x42491f
sbb eax, eax
xor ecx, ecx
inc ecx
or eax, ecx
test eax, eax
je 0x424a44
mov edx, dword [ebp - 0x80]
cmp edx, 2
jne 0x424a47
cmp dword [ebp - 0xd4], 0
jne 0x424a47
mov esi, dword [ebp - 0x90]
test esi, esi
jne 0x42494f
mov esi, 0x4016ec
xor eax, eax
cmp word [esi], ax
je 0x424a47
mov eax, dword [ebp - 0x78]
push 8
push dword [ebp - 0xa8]
movsx eax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [ebp - 0xa8]
lea ecx, [edx + edx]
cmp eax, ecx
jae 0x424a44
mov eax, dword [ebp - 0x88]
push 4
push dword [ebp - 0xac]
movsx eax, word [eax]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [ebp - 0x78], 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 - 0xb0]
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x8c]
test eax, eax
je 0x424a24
shr eax, 0x10
mov ecx, 0x80
cmp ax, cx
jne 0x424a24
and ebx, 0xf
cmp ebx, 5
je 0x424a04
cmp ebx, 6
je 0x424a04
cmp ebx, 2
je 0x424a04
cmp ebx, 3
je 0x424a04
cmp ebx, 4
je 0x424a04
cmp ebx, 9
je 0x424a04
mov eax, dword [ebp - 0xc]
add eax, 5
mov dword [ebp - 0xc], eax
jmp 0x424a27
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 8]
cmp eax, ecx
jle 0x424a1d
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add eax, ecx
jmp 0x4249ff
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x78], eax
jge 0x424a44
push dword [ebp - 0xac]
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ecx, dword [ebp - 0x88]
mov word [ecx], ax
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
movzx ecx, word [eax]
add eax, 2
mov dword [ebp - 0x78], eax
cmp edx, 2
jne 0x424a6b
mov eax, dword [ebp - 0x74]
mov word [eax], cx
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
add esi, edx
mov dword [ebp - 0x74], esi
jmp 0x424a71
mov esi, dword [ebp - 0x74]
add edi, 2
test cx, cx
je 0x424a9c
mov ebx, ecx
cmp edx, 2
jne 0x424a98
push ebx
push eax
push esi
call fcn.0043baa0
mov esi, dword [ebp - 0x74]
add esp, 0xc
mov eax, dword [ebp - 0x78]
add esi, ebx
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], esi
jmp 0x424a9a
add edi, ebx
add eax, ebx
cmp edx, 2
jne 0x424aac
add esi, 3
and esi, 0xfffffffc
mov dword [ebp - 0x74], esi
jmp 0x424ab2
add edi, 3
and edi, 0xfffffffc
mov ebx, dword [ebp - 0x94]
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x78], eax
mov ecx, eax
test bx, bx
jne 0x424753
mov ebx, dword [ebp - 0xbc]
inc edx
mov dword [ebp - 0x80], edx
cmp edx, 2
jg 0x424aea
jmp 0x424495
mov dword [ebp - 0xc0], 0x8007000e
push dword [ebp - 0xb0]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0xc0], 0
jge 0x424b11
xor eax, eax
mov dword [ebx], eax
cmp dword [ebp - 0x74], eax
je 0x424b11
push dword [ebp - 0x74]
call fcn.0043ad32
pop ecx
xor eax, eax
jmp 0x424b1a
mov eax, 0x80070057
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a998
leave
ret