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

Disassembly:
push 0xffffffffffffffff
push 0x56a728
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5c96a4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x5e12b8]
mov dword [esp + 0x24], eax
test eax, eax
je 0x41219f
mov ebx, dword [esp + 0x3c]
shl ecx, 5
movzx eax, byte [ecx + 0x5dfe59]
movzx esi, byte [ecx + 0x5dfe5a]
movzx ecx, byte [ecx + 0x5dfe5b]
neg eax
sbb eax, eax
and eax, 5
mov dword [esp + 0x1c], ecx
lea ebp, [ebx + 0x84]
push eax
mov ecx, ebp
mov dword [esp + 0x18], eax
call fcn.0044b8be
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 0x1778]
push edx
call fcn.0044b8be
neg esi
sbb esi, esi
and esi, 5
mov eax, esi
lea esi, [ebx + 0x9a4]
push eax
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.0044b8be
mov eax, dword [esp + 0x14]
lea ecx, [ebx + 0x1618]
push eax
mov dword [esp + 0x2c], ecx
call fcn.0044b8be
mov eax, dword [esp + 0x1c]
cmp eax, 7
mov dword [esp + 0x20], eax
jl 0x411f07
mov dword [esp + 0x20], 7
lea eax, [ebx + 0x15f8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
jmp 0x411f24
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x14], ecx
mov ecx, dword [eax]
jge 0x411f34
push 5
jmp 0x411f36
push 0
call fcn.0044b8be
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 4
inc eax
cmp eax, 7
mov dword [esp + 0x14], eax
jl 0x411f20
xor eax, eax
cmp dword [esp + 0x1c], 8
lea ecx, [ebx + 0x1498]
setne al
dec eax
and eax, 5
push eax
call fcn.0044b8be
call fcn.00441f5f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x411f82
push 0x80004005
call fcn.00403c50
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x24]
lea ecx, [edi + edi*4]
lea edi, [edx + ecx*8 + 0x714]
mov dword [esp + 0x34], 0
movzx ebx, byte [edi + 0xa5]
mov eax, dword [esi + 0x918]
push eax
lea ecx, [esi + 0x54]
mov eax, ebx
call fcn.00432190
push ebx
lea ecx, [esp + 0x18]
push 0x598da0
push ecx
call fcn.00403920
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.0040a200
add eax, 0x10
mov dword [esi], eax
mov esi, dword [esp + 0x38]
add esp, 4
call fcn.004315a0
mov edx, dword [ebp + 0x918]
movzx eax, byte [edi + 0xa4]
push edx
lea ecx, [ebp + 0x54]
call fcn.00432190
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + 0x960]
push eax
lea eax, [esp + 0x18]
push 0x598da0
push eax
call fcn.00403920
mov eax, dword [esp + 0x20]
add esp, 0xc
push 0
push 0
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x48], esp
mov esi, esp
push eax
mov dword [esp + 0x38], eax
call fcn.0040a200
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea esi, [ebp + 0x1778]
call fcn.004315a0
mov eax, dword [edi + 0xa8]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
cmp eax, dword [ebp + 0x153c]
je 0x412085
mov ecx, dword [ebp + 0x14b8]
push 1
push 0
push ecx
mov dword [ebp + 0x153c], eax
call esi
lea eax, [ebp + 0x15f8]
mov dword [esp + 0x3c], eax
lea ebx, [edi + 0xb0]
mov dword [esp + 0x20], 7
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebx]
push 1
mov dword [eax + 0x78], ecx
mov eax, dword [eax + 0x20]
push 0
push eax
call esi
add dword [esp + 0x3c], 4
add ebx, 4
sub dword [esp + 0x20], 1
jne 0x41209d
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x412108
lea edi, [ebp + 0x15f8]
lea ebx, [eax + 6]
mov eax, dword [edi]
mov ecx, dword [eax + 0x20]
push 1
push 0
push ecx
mov dword [eax + 0x7c], 0
call esi
add edi, 4
sub ebx, 1
jne 0x4120d5
mov eax, dword [ebp + 0x15f8]
mov edx, dword [eax + 0x20]
push 1
push ebx
push edx
mov dword [eax + 0x7c], 1
call esi
jmp 0x41215a
mov dword [esp + 0x3c], eax
lea ebx, [ebp + 0x15f8]
mov dword [esp + 0x20], 7
mov eax, dword [esp + 0x3c]
test dword [edi + 0xac], eax
mov eax, dword [ebx]
push 1
push 0
je 0x412139
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x7c], 1
push ecx
jmp 0x412144
mov edx, dword [eax + 0x20]
mov dword [eax + 0x7c], 0
push edx
call esi
mov eax, dword [esp + 0x3c]
add ebx, 4
rol eax, 1
sub dword [esp + 0x20], 1
mov dword [esp + 0x3c], eax
jne 0x41211a
cmp dword [0x5dbb44], 0
jne 0x412170
push 0
lea ecx, [ebp + 0x12c4]
call fcn.0044b8be
mov ecx, dword [ebp + 0x20]
push 1
push 0
push ecx
call esi
mov eax, dword [esp + 0x28]
mov dword [esp + 0x34], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41219f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4