Function at 0x40bd80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x500d8d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2bc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x80]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x2d4], ebp
mov dword [esp + 0x18], ebp
je 0x40bdd3
call fcn.0044ccf0
mov ecx, dword [edi + 0x80]
cmp ecx, ebp
je 0x40bdcd
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x80], ebp
push 0x1a8
call fcn.004e1a0a
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x2d4], 1
je 0x40be06
push ebp
push 0x18
push 0x96
push 0x93
mov ecx, eax
call fcn.0044cd90
jmp 0x40be08
xor eax, eax
mov ecx, eax
mov byte [esp + 0x2d4], 0
mov dword [edi + 0x80], eax
call fcn.0044d8a0
call fcn.004f65e5
mov eax, dword [eax + 4]
push 0x32
push str.BackgroundOpacity
push str.Settings
mov ecx, eax
call fcn.004f6a2e
push ebp
lea ecx, [esp + 0x24]
mov ebx, eax
call fcn.0044ccd0
mov byte [esp + 0x2d4], 2
mov dword [esp + 0x14], ebp
call fcn.00440c80
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
cmp esi, ebp
je 0x40be91
push 0x50f210
mov ecx, esi
call fcn.004e5bd4
test eax, eax
je 0x40be91
mov esi, dword [esi + 0xd0f8]
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x40be91
push 0x54ae58
lea ecx, [esp + 0x2e0]
call fcn.004e14c2
mov eax, dword [esp + 0x2dc]
mov esi, 0x54ae58
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bec1
test cl, cl
je 0x40bebd
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bec1
add eax, 2
add esi, 2
test cl, cl
jne 0x40be9d
xor eax, eax
jmp 0x40bec6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c016
lea eax, [esp + 0x2dc]
lea ecx, [esp + 0x10]
push eax
call fcn.004e10ae
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 3
call fcn.004e18c7
push str..jpg
lea ecx, [esp + 0x14]
call fcn.004db367
test eax, eax
jg 0x40bf14
push str..jpeg
lea ecx, [esp + 0x14]
call fcn.004db367
test eax, eax
jle 0x40bf35
push ecx
lea edx, [esp + 0x2e0]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004e10ae
lea eax, [esp + 0x24]
push eax
call fcn.00435bd0
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40bf9b
mov ebp, dword [esp + 0x2dc]
mov esi, 0x54ae58
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40bf6f
test cl, cl
je 0x40bf6b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40bf6f
add eax, 2
add esi, 2
test cl, cl
jne 0x40bf4b
xor eax, eax
jmp 0x40bf74
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40bf88
push 0
push ebp
lea ecx, [esp + 0x28]
call fcn.00452f00
test al, al
jne 0x40bf9b
push 0x54ae58
lea ecx, [esp + 0x2e0]
call fcn.004e14c2
jmp 0x40c003
mov eax, dword [esp + 0x2c]
xor edx, edx
push 0
push 1
lea eax, [eax + eax*4]
push 0x7d
lea ecx, [esp + 0x2c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
div dword [esp + 0x3c]
push eax
call fcn.0044fcb0
mov ebp, dword [esp + 0x2c]
mov eax, 0x8f
sub eax, ebp
push 0x14
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [edi + 0x80]
call fcn.0044ef70
mov eax, dword [edi + 0x80]
lea edx, [esp + 0x2dc]
push edx
lea ecx, [edi + 0x3d4]
mov byte [eax + 0x17c], bl
call fcn.004e1472
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 2
call fcn.004e1339
jmp 0x40c01e
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x2dc]
mov esi, 0x54ae58
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40c052
test cl, cl
je 0x40c04e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40c052
add eax, 2
add esi, 2
test cl, cl
jne 0x40c02a
xor eax, eax
jmp 0x40c057
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40c1d2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40c134
push 0x54ae58
lea ecx, [esp + 0x18]
call fcn.004e13a7
lea eax, [esp + 0x1c8]
push 0x103
push eax
push 0
mov byte [esp + 0x2e0], 4
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x40c111
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e13a7
mov bl, 5
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d8], bl
call fcn.004db345
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004db277
mov eax, dword [eax]
push str.background.png
push eax
lea ecx, [esp + 0x1c]
push 0x5385b0
push ecx
mov byte [esp + 0x2e4], 6
call fcn.004db6ed
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], bl
call fcn.004e1339
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 4
call fcn.004e1339
mov edx, dword [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x28]
call fcn.00452f00
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d4], 2
call fcn.004e1339
jmp 0x40c176
call fcn.00436d40
mov ecx, eax
call fcn.00438dd0
test eax, eax
je 0x40c156
push 1
push 1
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.0044ce10
jmp 0x40c176
push 0
push 4
push 0x538478
push 0x16d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
lea ecx, [esp + 0x2c]
call fcn.00453140
mov eax, 0xaaaaaaab
push 0
mul dword [esp + 0x34]
shr edx, 1
push 1
mov eax, 0xaaaaaaab
push edx
mul dword [esp + 0x38]
shr edx, 1
push edx
lea ecx, [esp + 0x30]
call fcn.0044fcb0
mov ebx, dword [esp + 0x2c]
mov eax, 0x8f
sub eax, ebx
push 0x14
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [edi + 0x80]
call fcn.0044ef70
push 0x54ae58
lea ecx, [edi + 0x3d4]
call fcn.004e14c2
lea ecx, [esp + 0x20]
call fcn.0044ccf0
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x80]
push eax
mov dword [edi + 0x78], edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c201
mov ecx, dword [edi + 0x1c]
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x1c]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 0
mov dword [esp + 0x20], 0x50d434
call fcn.0044ccf0
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.004e1339
mov ecx, dword [esp + 0x2cc]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2c8
ret 4