Function at 0x407cd7
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x41e598
call fcn.0041d2e8
sub esp, 0x45c
push ebx
push esi
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
xor ebx, ebx
push edi
cmp dword [ebp + 8], ebx
jne 0x407f9a
mov eax, dword [0x433a84]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, ebx
je 0x407ed4
mov ecx, dword [0x42d410]
mov dword [ebp - 0x54], ecx
mov ecx, dword [0x433a58]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x34]
push ecx
push 0x18
push eax
mov dword [ebp - 0x3c], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
push ebx
call edi
push ebx
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x22]
push ebx
push eax
movzx eax, word [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 0x40], eax
movzx eax, word [ebp - 0x22]
push ebx
push eax
movzx eax, word [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push ebx
push 1
push 1
push dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x30]
call dword [sym.imp.GDI32.dll_CreateBitmap]
push dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x38]
push dword [ebp - 0x18]
call esi
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call edi
push ebx
mov dword [ebp - 0x10], eax
call edi
push dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x54]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_SetBkColor]
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push 0x660046
push ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x2c]
push ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x44], eax
call edi
push ebx
mov dword [ebp - 0x10], eax
call edi
push dword [ebp - 0x40]
mov dword [ebp - 0x18], eax
push eax
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_FillRect]
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
call esi
push 0x8800c6
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x38]
push dword [ebp - 0x10]
call esi
push 0xee0086
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x18]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [0x433a84]
mov dword [ebp - 0x18], eax
mov eax, dword [0x433a58]
push 0x47
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x48
mov dword [ebp - 0x3c], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebx
mov dword [ebp - 0x10], eax
call edi
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x407f9a
push ebx
call edi
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x407f91
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call esi
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp - 0x18]
call edi
movzx eax, word [ebp - 0x22]
push ebx
push eax
movzx eax, word [ebp - 0x24]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov dword [ebp - 0x54], eax
cmp eax, ebx
je 0x407f88
push eax
push dword [ebp - 0x38]
call esi
push 0xcc0020
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
push eax
push eax
imul eax, dword [ebp - 0x14]
push ebx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push dword [ebp - 0x3c]
push ebx
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_StretchBlt]
push dword [ebp - 0x40]
push dword [ebp - 0x38]
call esi
lea eax, [ebp - 0x34]
push eax
push 0x18
push dword [ebp - 0x54]
call edi
push dword [ebp - 0x38]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_DeleteDC]
xor edi, edi
inc edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStrings]
mov dword [ebp - 0x3c], 0x45
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [0x433a58]
add eax, eax
sub eax, ecx
sub eax, dword [0x433a60]
push ebx
add eax, dword [0x433a74]
push ebx
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.wsnmp32.dll_SnmpRegister]
mov dword [0x433a84], eax
cmp dword [0x42d410], ebx
je 0x407fea
push edi
push ebx
push eax
push ebx
call dword [sym.imp.GDI32.dll_CombineRgn]
dec dword [ebp - 0x3c]
jne 0x407fad
mov dword [ebp - 0x48], ebx
call fcn.0040ac4e
mov dword [eax], eax
mov dword [ebp - 0x4c], eax
mov dword [eax + 4], eax
mov dword [ebp - 4], ebx
mov edi, dword [eax]
movzx ecx, word [0x433a68]
lea eax, [ebp - 0x14]
push eax
push dword [edi + 4]
mov dword [ebp - 0x14], ecx
push edi
call fcn.0040abdf
mov dword [edi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
movzx eax, word [0x433a58]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x48], 1
call fcn.0040a521
mov eax, dword [0x432fd0]
lea ecx, [ebp - 0x468]
imul eax, ecx
movzx ecx, word [0x433a90]
sub ecx, eax
mov eax, 0x4331b0
movzx eax, al
add ecx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [0x433a90], ecx
mov dword [ebp - 0x14], ebx
call fcn.0040a521
movzx eax, word [0x433a88]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a521
mov edi, dword [ebp - 0x4c]
mov eax, dword [edi]
cmp eax, edi
je 0x4080a5
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call fcn.0040e259
pop ecx
movzx eax, word [0x42d410]
push eax
push ebx
push ebx
call dword [sym.imp.USER32.dll_SetWindowWord]
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.wsnmp32.dll_SnmpStrToEntity]
movzx ecx, byte [ebp - 0x1c]
mov eax, dword [0x433a70]
mov dword [0x433a60], ebx
cmp eax, ecx
jge 0x4080f6
movzx ecx, byte [0x433a6c]
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
add eax, ecx
sub eax, dword [0x433850]
sub eax, dword [0x42d410]
mov dword [0x433a70], eax
fldz
push ecx
push ecx
fstp qword [esp]
call fcn.0040d860
fstp st(0)
mov eax, dword [0x433a88]
imul eax, dword [0x433a90]
imul eax, dword [0x433a5c]
add esp, 8
push dword [0x433a58]
add eax, 0x796
push 1
push ebx
mov dword [0x433a78], eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebx
call esi
or dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x408155
mov esi, dword [eax]
push eax
call fcn.0040e259
pop ecx
mov eax, esi
cmp esi, edi
jne 0x408146
push edi
call fcn.0040e259
xor eax, eax
mov word [ebp - 0x260], ax
mov dword [esp], 0x206
lea eax, [ebp - 0x25e]
push ebx
push eax
mov dword [ebp - 0x1c], 1
call fcn.0040e180
fild dword [0x433a5c]
add esp, 4
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
fstp qword [esp]
call fcn.0040e270
mov eax, dword [0x433a90]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x14]
pop ecx
fstp dword [ebp - 0x14]
pop ecx
fild dword [0x433a90]
test eax, eax
jns 0x4081b6
fadd qword [0x429818]
fild dword [0x433a7c]
fsub dword [ebp - 0x14]
fisub dword [0x433a78]
fisub dword [0x433850]
fsubp st(1)
call fcn.0041d346
mov dword [0x433a90], eax
mov dword [ebp - 0x4c], ebx
xor eax, eax
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x433a74], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ole32.dll_ReleaseStgMedium]
push 0xffffffffffffffe6
push dword [0x433a7c]
call dword [sym.imp.USER32.dll_GetClassLongA]
or eax, 0x200
push eax
push 0xffffffffffffffe6
push dword [0x433a68]
call dword [sym.imp.USER32.dll_SetClassLongA]
push str.SetLayeredWindowAttributes
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor edi, edi
inc edi
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.NTDSAPI.dll_DsReplicaAddA]
imul eax, eax, 0x274
mov esi, dword [ebp + 8]
add eax, 0x384
mov dword [0x433720], eax
cmp esi, ebx
jne 0x40825b
mov ecx, dword [0x433a88]
sub ecx, eax
mov dword [0x433a90], ecx
jmp 0x408261
mov dword [0x433a58], edi
push ebx
call dword [sym.imp.NTDSAPI.dll_DsUnBindA]
mov ecx, dword [0x433a7c]
lea eax, [eax + esi + 0xe3]
lea esi, [ecx + 0x3c]
mov dword [0x433a6c], eax
cmp esi, ebx
je 0x4082bb
push str.Button
push ecx
dec esi
call dword [sym.imp.UxTheme.dll_OpenThemeData]
mov ecx, dword [0x433a7c]
mov eax, 0x432fa8
cdq
lea edi, [ecx + 0x3e]
idiv edi
add eax, dword [0x433a64]
add eax, dword [0x433720]
add eax, dword [0x433a6c]
add dword [ebp - 0x1c], eax
cmp esi, ebx
jne 0x408281
xor edi, edi
inc edi
push 8
mov dword [ebp - 0x34], ebx
call fcn.0040e47e
pop ecx
cmp eax, ebx
je 0x40844b
mov dword [ebp - 0x34], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x34]
mov dword [ecx], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], edi
call fcn.0040a930
mov edi, dword [ebp - 0x28]
cmp edi, ebx
jne 0x408301
mov edi, dword [ebp - 0x2c]
shl edi, 4
mov eax, dword [ebp - 0x30]
dec edi
mov esi, edi
shr esi, 4
cmp dword [eax + esi*4], ebx
jne 0x40831a
call fcn.0040aa5b
mov ecx, dword [ebp - 0x30]
mov dword [ecx + esi*4], eax
mov ecx, dword [ebp - 0x30]
mov eax, edi
and eax, 0xf
add eax, dword [ecx + esi*4]
je 0x40832c
mov cl, byte [ebp - 0x1c]
mov byte [eax], cl
mov eax, dword [0x433a88]
imul eax, dword [0x433a84]
imul eax, dword [0x433a5c]
add eax, dword [0x433a78]
inc dword [ebp - 0x24]
add dword [0x433a74], eax
mov al, byte [0x433a90]
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
lea esi, [ebp - 0x34]
mov dword [ebp - 0x28], edi
call fcn.0040a5b1
mov al, byte [0x433a6c]
mov ecx, dword [ebp - 0x28]
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x24]
add ecx, eax
test cl, 0xf
jne 0x40838c
add eax, 0x10
shr eax, 4
cmp dword [ebp - 0x2c], eax
ja 0x40838c
mov eax, esi
call fcn.0040a930
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x28]
mov eax, esi
shr eax, 4
cmp dword [ebp - 0x2c], eax
ja 0x40839f
sub eax, dword [ebp - 0x2c]
mov edi, eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + edi*4], ebx
jne 0x4083b4
call fcn.0040aa5b
mov ecx, dword [ebp - 0x30]
mov dword [ecx + edi*4], eax
mov eax, dword [ebp - 0x30]
and esi, 0xf
add esi, dword [eax + edi*4]
je 0x4083c4
mov al, byte [ebp + 0xb]
mov byte [esi], al
mov al, byte [0x433a78]
inc dword [ebp - 0x24]
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push eax
lea esi, [ebp - 0x34]
call fcn.0040a5b1
cmp dword [ebp - 0x24], ebx
je 0x4083e8
dec dword [ebp - 0x24]
jne 0x4083e8
mov dword [ebp - 0x28], ebx
mov eax, dword [0x433a74]
mov dword [0x433a64], eax
cmp dword [ebp - 0x24], ebx
je 0x408401
dec dword [ebp - 0x24]
jne 0x4083f2
mov dword [ebp - 0x28], ebx
jmp 0x4083f2
mov esi, dword [ebp - 0x2c]
jmp 0x408419
mov eax, dword [ebp - 0x30]
dec esi
lea eax, [eax + esi*4]
cmp dword [eax], ebx
je 0x408419
push dword [eax]
call fcn.0040e259
pop ecx
cmp esi, ebx
ja 0x408406
cmp dword [ebp - 0x30], ebx
je 0x40842b
push dword [ebp - 0x30]
call fcn.0040e259
pop ecx
push dword [ebp - 0x34]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
call fcn.0040e259
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
leave
ret
lea esi, [ebp - 0x4c]
call fcn.00407b39
push 0x429f9c
mov eax, esi
push eax
call fcn.00415db0
int3