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

Disassembly:
push 0xffffffffffffffff
push 0x44c508
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4638dc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041591e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4139a3
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
cmp dword [esi + 0x54], 0
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esi + 0x64], edx
mov edx, dword [esp + 0x7c]
mov dword [esi + 0x68], eax
mov dword [esp + 0x64], 0
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x78], edx
push 0xfffffffffffffff0
je 0x413a03
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ecx, dword [esi + 0x20]
push 1
and eax, 0xf4
push eax
push 0xf4
push ecx
jmp 0x413a21
mov edx, dword [esi + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xf4
push 1
or eax, 0xb
push eax
mov eax, dword [esi + 0x20]
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.004203e0
movzx ecx, word [esp + 0x80]
mov eax, dword [eax + 0xc]
mov edi, dword [sym.imp.USER32.dll_LoadImageA]
push 0x8000
push 0
push 0
push 1
push ecx
push eax
call edi
lea edx, [esp + 0x18]
mov ebp, eax
push edx
push ebp
call dword [sym.imp.USER32.dll_GetIconInfo]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x28]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call ebx
mov eax, dword [esp + 0x24]
push eax
call ebx
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
push 1
push 6
push 0x21
push ecx
mov dword [esi + 0x74], ecx
push eax
lea ecx, [esi + 0x58]
mov dword [esi + 0x70], eax
call fcn.0041ed69
mov eax, dword [esi + 0x5c]
push ebp
push 0xffffffffffffffff
push eax
call fcn.004203e0
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.00412970
mov ebx, dword [esp + 0x84]
test ebx, ebx
jne 0x413ac3
mov eax, ebp
jmp 0x413add
call fcn.004203e0
mov eax, dword [eax + 0xc]
push 0x8000
push 0
push 0
movzx edx, bx
push 1
push edx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.004203e0
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00412970
mov ebx, dword [esp + 0x88]
test ebx, ebx
jne 0x413b02
mov eax, ebp
jmp 0x413b1c
call fcn.004203e0
mov eax, dword [eax + 0xc]
push 0x8000
push 0
push 0
movzx ecx, bx
push 1
push ecx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.004203e0
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00412970
mov ebx, dword [esp + 0x8c]
test ebx, ebx
jne 0x413b41
mov eax, ebp
jmp 0x413b5b
call fcn.004203e0
mov eax, dword [eax + 0xc]
push 0x8000
push 0
push 0
movzx ecx, bx
push 1
push ecx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.004203e0
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00412970
mov ebx, dword [esp + 0x90]
test ebx, ebx
jne 0x413b80
mov eax, ebp
jmp 0x413b9a
call fcn.004203e0
mov eax, dword [eax + 0xc]
push 0x8000
push 0
push 0
movzx ecx, bx
push 1
push ecx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.004203e0
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00412970
mov ebx, dword [esp + 0x94]
test ebx, ebx
jne 0x413bbf
mov eax, ebp
jmp 0x413bd9
call fcn.004203e0
mov eax, dword [eax + 0xc]
push 0x8000
push 0
push 0
movzx ecx, bx
push 1
push ecx
push eax
call edi
mov ecx, dword [esi + 0x5c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.004203e0
mov edx, dword [eax + 0x78]
mov ecx, dword [edx]
call fcn.00412970
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x7c]
push 0
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x84]
push 0x1602
push ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x64], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0x2c