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

Disassembly:
push 0xffffffffffffffff
push 0x5050ad
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 0x40cca3
call fcn.00450d80
mov ecx, dword [edi + 0x80]
cmp ecx, ebp
je 0x40cc9d
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi + 0x80], ebp
push 0x1a8
call fcn.004e5c1a
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebp
mov byte [esp + 0x2d4], 1
je 0x40ccd6
push ebp
push 0x18
push 0x96
push 0x93
mov ecx, eax
call fcn.00450e20
jmp 0x40ccd8
xor eax, eax
mov ecx, eax
mov byte [esp + 0x2d4], 0
mov dword [edi + 0x80], eax
call fcn.00451930
call fcn.004fa7f5
mov eax, dword [eax + 4]
push 0x32
push 0x53c5fc
push 0x53c470
mov ecx, eax
call fcn.004fac3e
push ebp
lea ecx, [esp + 0x24]
mov ebx, eax
call fcn.00450d60
mov byte [esp + 0x2d4], 2
mov dword [esp + 0x14], ebp
call fcn.00446450
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
mov esi, eax
cmp esi, ebp
je 0x40cd61
push 0x513338
mov ecx, esi
call fcn.004e9de4
test eax, eax
je 0x40cd61
mov esi, dword [esi + 0xd0ec]
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x40cd61
push 0x550398
lea ecx, [esp + 0x2e0]
call fcn.004e56d2
mov eax, dword [esp + 0x2dc]
mov esi, 0x550398
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40cd91
test cl, cl
je 0x40cd8d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40cd91
add eax, 2
add esi, 2
test cl, cl
jne 0x40cd6d
xor eax, eax
jmp 0x40cd96
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cee6
lea eax, [esp + 0x2dc]
lea ecx, [esp + 0x10]
push eax
call fcn.004e52be
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 3
call fcn.004e5ad7
push 0x53c5f4
lea ecx, [esp + 0x14]
call fcn.004df577
test eax, eax
jg 0x40cde4
push 0x53c5ec
lea ecx, [esp + 0x14]
call fcn.004df577
test eax, eax
jle 0x40ce05
push ecx
lea edx, [esp + 0x2e0]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.004e52be
lea eax, [esp + 0x24]
push eax
call fcn.0043a630
add esp, 8
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x40ce6b
mov ebp, dword [esp + 0x2dc]
mov esi, 0x550398
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40ce3f
test cl, cl
je 0x40ce3b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40ce3f
add eax, 2
add esi, 2
test cl, cl
jne 0x40ce1b
xor eax, eax
jmp 0x40ce44
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40ce58
push 0
push ebp
lea ecx, [esp + 0x28]
call fcn.00456f90
test al, al
jne 0x40ce6b
push 0x550398
lea ecx, [esp + 0x2e0]
call fcn.004e56d2
jmp 0x40ced3
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.00453d40
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.00453000
mov eax, dword [edi + 0x80]
lea edx, [esp + 0x2dc]
push edx
lea ecx, [edi + 0x3d4]
mov byte [eax + 0x17c], bl
call fcn.004e5682
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 2
call fcn.004e5549
jmp 0x40ceee
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x2dc]
mov esi, 0x550398
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40cf22
test cl, cl
je 0x40cf1e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40cf22
add eax, 2
add esi, 2
test cl, cl
jne 0x40cefa
xor eax, eax
jmp 0x40cf27
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d0a2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40d004
push 0x550398
lea ecx, [esp + 0x18]
call fcn.004e55b7
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 0x40cfe1
lea ecx, [esp + 0x1c8]
push ecx
lea ecx, [esp + 0x14]
call fcn.004e55b7
mov bl, 5
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d8], bl
call fcn.004df555
lea edx, [esp + 0x1c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.004df487
mov eax, dword [eax]
push 0x53c5dc
push eax
lea ecx, [esp + 0x1c]
push 0x53c5d4
push ecx
mov byte [esp + 0x2e4], 6
call fcn.004df8fd
add esp, 0x10
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], bl
call fcn.004e5549
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 4
call fcn.004e5549
mov edx, dword [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x28]
call fcn.00456f90
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d4], 2
call fcn.004e5549
jmp 0x40d046
call fcn.0043bcd0
mov ecx, eax
call fcn.0043e030
test eax, eax
je 0x40d026
push 1
push 1
push 1
push eax
lea ecx, [esp + 0x30]
call fcn.00450ea0
jmp 0x40d046
push 0
push 4
push 0x53c494
push 0x16d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
lea ecx, [esp + 0x2c]
call fcn.004571d0
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.00453d40
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.00453000
push 0x550398
lea ecx, [edi + 0x3d4]
call fcn.004e56d2
lea ecx, [esp + 0x20]
call fcn.00450d80
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 0x40d0d1
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], 0x511434
call fcn.00450d80
lea ecx, [esp + 0x2dc]
mov dword [esp + 0x2d4], 0xffffffff
call fcn.004e5549
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