Function at 0x40ce20
Capabilities:
Inspect load icon resource

Disassembly:
sub esp, 0x20
mov eax, dword [0x5737f4]
push ebx
push ebp
mov ebp, dword [esi + 0xf4]
push edi
mov edi, dword [esi + 0x104]
add edi, 8
sub ebp, 0x1e
cmp dword [eax + 0xf0], 0
mov dword [esp + 0x10], eax
je 0x40ce6c
fld dword [eax + 0xf4]
fmul qword [0x540f88]
fiadd dword [esi + 0xf0]
call fcn.004ebbf0
mov ebx, dword [esi + 0x120]
sub ebx, 0x50
jmp 0x40ceb8
mov eax, dword [esi + 0xf8]
cmp eax, 0x300
jne 0x40ce90
mov eax, dword [esi + 0xf0]
mov ebx, dword [esi + 0x108]
add eax, 0x6e
sub ebx, 0x127
jmp 0x40ceb8
cmp eax, 0x400
jne 0x40ceb0
mov eax, dword [esi + 0xf0]
mov ebx, dword [esi + 0x108]
add eax, 0x96
sub ebx, 0x14a
jmp 0x40ceb8
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esi + 0x10c], edi
push 1
mov dword [esi + 0x110], eax
mov edx, ebx
mov dword [esi + 0x114], ebp
sub edx, eax
push edx
sub ebp, edi
push ebp
push eax
lea ecx, [esi + 0x78]
push edi
mov dword [esi + 0x118], ebx
call fcn.004d07b7
push 0
lea ecx, [esi + 0x78]
call fcn.004d07f5
add ebx, 5
push 1
lea ebp, [ebx + 0x1c]
lea eax, [edi + 0x1c]
sub ebp, ebx
push ebp
sub eax, edi
push eax
push ebx
lea ecx, [esi + 0x718]
push edi
call fcn.004d07b7
push 0
lea ecx, [esi + 0x718]
call fcn.004d07f5
lea eax, [esi + 0x2eec]
test eax, eax
jne 0x40cf27
xor ecx, ecx
jmp 0x40cf2a
mov ecx, dword [eax + 0x20]
test eax, eax
jne 0x40cf34
mov dword [esp + 0xc], eax
jmp 0x40cf3b
mov eax, dword [eax + 0x20]
mov dword [esp + 0xc], eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esp + 0xc]
or eax, 0x4000000
push eax
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x104]
mov edx, dword [esi + 0xf4]
push 1
sub edx, eax
push 0x14
sub edx, 0x1d
lea ecx, [ebx + 0x1f]
push edx
push ecx
add eax, 2
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esi + 0x2eec]
call fcn.004d07b7
push 1
push 0xf
lea eax, [ebx + 0x30]
push 0x5f
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xf4]
sub eax, 0x82
lea ecx, [esi + 0x2f40]
push eax
mov dword [esp + 0x2c], ecx
call fcn.004d07b7
add edi, 0x32
push 1
push ebp
lea eax, [edi + 0x1c]
sub eax, edi
push eax
push ebx
lea ecx, [esi + 0x76c]
push edi
call fcn.004d07b7
push 0
lea ecx, [esi + 0x76c]
call fcn.004d07f5
add edi, 0x22
push 1
push ebp
lea eax, [edi + 0x1c]
sub eax, edi
push eax
push ebx
lea ecx, [esi + 0x7c0]
push edi
call fcn.004d07b7
push 0
lea ecx, [esi + 0x7c0]
call fcn.004d07f5
add edi, 0x22
push 1
push ebp
lea eax, [edi + 0x1c]
sub eax, edi
push eax
push ebx
lea ecx, [esi + 0x868]
push edi
call fcn.004d07b7
push 0
lea ecx, [esi + 0x868]
call fcn.004d07f5
mov ebx, dword [esp + 0x10]
cmp dword [ebx + 0xf0], 0
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
je 0x40d072
fld dword [ebx + 0xf4]
push 0
fmul qword [0x540f80]
call fcn.004ebbf0
mov edx, dword [esi + 0x286c]
movsx ecx, ax
push ecx
push 0x111b
push edx
call edi
fld dword [ebx + 0xf4]
fmul qword [0x540f80]
call fcn.004ebbf0
push 0
push 0
push 0x20
push eax
push eax
jmp 0x40d0c0
mov eax, dword [esi + 0xf8]
cmp eax, 0x300
jne 0x40d09d
mov eax, dword [esi + 0x286c]
push 0
push 0x12
push 0x111b
push eax
call edi
push 0
push 0
push 0x20
push 0x10
push 0x10
jmp 0x40d0c0
cmp eax, 0x400
jne 0x40d0cb
mov ecx, dword [esi + 0x286c]
push 0
push 0x18
push 0x111b
push ecx
call edi
push 0
push 0
push 0x20
push 0x18
push 0x18
lea ecx, [esi + 0xdc]
call fcn.004c7eef
mov eax, dword [esi + 0xe0]
push 0xffebff
push eax
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405d10
lea eax, [esi + 0xdc]
test eax, eax
je 0x40d0f3
mov eax, dword [eax + 4]
push eax
mov eax, dword [esi + 0x286c]
push 0
push 0x1109
push eax
call edi
push eax
call fcn.004c7da5
mov ecx, dword [esi + 0x286c]
push 0xffebff
push 0
push 0x111d
push ecx
call edi
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x23d
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x23a
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x23f
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x23c
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x23e
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x233
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x522
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x235
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x97
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x238
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x237
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x23b
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x263
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x265
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x269
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00405bd0
call fcn.004c6f68
call fcn.004c6f68
mov eax, dword [eax + 0xc]
push 0x26a
push eax
call edi
mov ecx, dword [esi + 0xe0]
push eax
push ecx
call fcn.004c6f68
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00405bd0
lea edi, [esi + 0x2eec]
test edi, edi
jne 0x40d3f3
xor eax, eax
jmp 0x40d3f6
mov eax, dword [edi + 0x20]
test edi, edi
jne 0x40d3fe
xor ebx, ebx
jmp 0x40d401
mov ebx, dword [edi + 0x20]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x4000000
push eax
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0x104]
mov ecx, dword [esi + 0xf4]
mov edx, dword [esp + 0xc]
push 1
sub ecx, eax
push 0x14
sub ecx, 0x1d
push ecx
push edx
add eax, 2
push eax
mov ecx, edi
call fcn.004d07b7
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xf4]
push 1
push 0xf
push 0x5f
sub ecx, 0x82
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004d07b7
pop edi
pop ebp
pop ebx
add esp, 0x20
ret