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

Disassembly:
push 0xffffffffffffffff
push 0x4d245f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c8
push ebx
push ebp
mov ebp, dword [esp + 0x3e0]
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push 0
push 0
push 0x1027
push eax
call esi
mov ecx, dword [ebp + 0x18]
push 0
push 0
push 0x1028
push ecx
mov edi, eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, eax
push 0x4fec00
add esi, edi
call ebx
mov edx, dword [0x4fec28]
push 0x4fec00
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, dword [esp + 0x14]
jb 0x412571
push 0x4fec00
call ebx
mov esi, dword [0x4fec28]
push 0x4fec00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
dec esi
push ebp
mov byte [esp + 0x17], 0
mov dword [esp + 0x64], ebp
call ebx
push edi
lea ecx, [esp + 0xa4]
mov eax, 0x4fec00
mov dword [esp + 0x3e4], 0
call fcn.00411670
push esi
lea ecx, [esp + 0x90]
mov eax, 0x4fec00
mov byte [esp + 0x3e4], 1
call fcn.00411670
mov byte [esp + 0x3e0], 2
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4125de
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jmp 0x4125f2
mov eax, dword [esp + 0x60]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x68], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x94]
mov dword [esp + 0x6c], ecx
or ecx, 0xffffffff
mov dword [esp + 0x70], edx
test eax, eax
je 0x412636
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ecx
jmp 0x412649
mov eax, dword [esp + 0x60]
or eax, 0xffffffff
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x34]
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x194]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
test eax, eax
je 0x412814
lea ecx, [esp + 0x44]
push ecx
call fcn.00417100
mov byte [esp + 0x3e0], 3
mov eax, dword [ebp + 0x194]
push eax
lea ecx, [esp + 0x48]
call fcn.004171b0
lea esi, [ebp + 0x17c]
push esi
call fcn.00416910
mov eax, dword [esi + 0x14]
mov edi, dword [eax]
mov eax, dword [esi]
test eax, eax
jne 0x4126de
call fcn.0049f380
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x4126c0
call fcn.0049f380
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
cmp eax, ebx
jne 0x4126d0
cmp ecx, dword [esp + 0x20]
je 0x4126e2
cmp ecx, dword [esp + 0x20]
jb 0x4126f0
ja 0x41270b
cmp eax, ebx
jb 0x4126f0
jmp 0x41270b
mov eax, dword [eax]
jmp 0x4126b6
mov edx, dword [esp + 0x24]
cmp dword [edi + 0x10], edx
setb al
test al, al
je 0x41270b
mov eax, esi
call fcn.00416850
mov ecx, eax
lea eax, [esp + 0x64]
call fcn.00410c00
test al, al
je 0x41270b
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov ebx, dword [esi]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
lea ebx, [ebx]
mov edi, dword [esi + 0x14]
mov eax, dword [esi]
test ebx, ebx
je 0x41272d
cmp ebx, eax
je 0x412732
call fcn.0049f380
cmp dword [esp + 0x18], edi
je 0x4127de
test ebx, ebx
jne 0x41278c
call fcn.0049f380
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x412755
call fcn.0049f380
mov edx, dword [esp + 0x18]
push 0
add edx, 8
push edx
lea eax, [ebp + 0x30]
push eax
lea edi, [ebp + 0x1c]
push edi
call fcn.00406310
cmp eax, 0xffffffff
je 0x4127b6
cmp byte [edi], 0
mov ecx, dword [edi + 4]
lea eax, [ecx + eax*4]
je 0x412790
mov edx, dword [eax]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], 0
jmp 0x4127a5
mov eax, dword [ebx]
jmp 0x412747
mov eax, dword [eax]
mov ecx, eax
and ecx, 0xfffff
shr eax, 0x14
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
lea ebx, [esp + 0x2c]
lea edi, [esp + 0x44]
call fcn.004172f0
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x4127da
call fcn.0049f380
xor eax, eax
mov edi, dword [esp + 0x18]
cmp edi, dword [eax + 0x14]
jne 0x4127cf
call fcn.0049f380
mov edx, dword [edi]
mov dword [esp + 0x18], edx
jmp 0x412720
mov eax, dword [ebx]
jmp 0x4127c1
mov edi, dword [esp + 0x54]
sub edi, dword [esp + 0x50]
sar edi, 3
test edi, edi
je 0x412802
ja 0x4127f4
call fcn.0049f380
push edi
lea eax, [ebp + 0x1c]
push eax
mov eax, dword [esp + 0x58]
call fcn.00406160
lea ecx, [esp + 0x44]
push ecx
mov byte [esp + 0x3e4], 2
call fcn.00417150
mov eax, dword [ebp + 0x178]
test eax, eax
je 0x412a34
push 4
call fcn.0049e995
add esp, 4
test eax, eax
je 0x412838
lea edx, [esp + 0x44]
mov dword [eax], edx
jmp 0x41283a
xor eax, eax
mov dword [esp + 0x44], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov byte [esp + 0x3e0], 5
mov eax, dword [ebp + 0x178]
push eax
lea ecx, [esp + 0x48]
call fcn.004174f0
lea edi, [ebp + 0x160]
push edi
call fcn.00416910
mov eax, dword [edi + 0x14]
mov ebx, dword [eax]
mov eax, dword [edi]
cmp eax, esi
jne 0x4128b5
call fcn.0049f380
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x41288c
call fcn.0049f380
mov eax, dword [ebx + 8]
mov edx, dword [esp + 0x1c]
mov ecx, dword [ebx + 0xc]
cmp eax, edx
jne 0x4128a0
cmp ecx, dword [esp + 0x20]
je 0x4128b9
cmp ecx, dword [esp + 0x20]
jb 0x4128c7
ja 0x412938
cmp eax, edx
jb 0x4128c7
jmp 0x412938
mov eax, dword [eax]
jmp 0x412882
mov eax, dword [esp + 0x24]
cmp dword [ebx + 0x10], eax
setb al
test al, al
je 0x412938
mov ebx, dword [edi]
mov esi, dword [edi + 0x14]
test ebx, ebx
jne 0x4128d5
call fcn.0049f380
mov esi, dword [esi + 4]
test ebx, ebx
je 0x4128e0
mov eax, dword [ebx]
jmp 0x4128e2
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4128ec
call fcn.0049f380
test ebx, ebx
jne 0x412921
call fcn.0049f380
cmp esi, dword [ebx + 0x14]
jne 0x4128ff
call fcn.0049f380
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x64]
mov ecx, dword [esi + 0xc]
cmp eax, edx
jne 0x412913
cmp ecx, dword [esp + 0x68]
je 0x412925
cmp ecx, dword [esp + 0x68]
ja 0x412933
jb 0x412938
cmp eax, edx
ja 0x412933
jmp 0x412938
mov ebx, dword [ebx]
jmp 0x4128f5
mov ecx, dword [esp + 0x6c]
cmp dword [esi + 0x10], ecx
seta al
test al, al
je 0x412938
mov byte [esp + 0x13], 1
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov ebx, dword [edi]
mov esi, eax
mov edi, dword [ebp + 0x174]
mov eax, dword [ebp + 0x160]
test ebx, ebx
je 0x412955
cmp ebx, eax
je 0x41295a
call fcn.0049f380
cmp esi, edi
je 0x4129c6
test ebx, ebx
jne 0x4129be
call fcn.0049f380
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x412973
call fcn.0049f380
lea edx, [esi + 8]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.004140a0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
lea ecx, [esp + 0x34]
push ecx
lea edi, [esp + 0x48]
mov dword [esp + 0x38], eax
mov byte [esp + 0x40], 1
call fcn.00417660
test ebx, ebx
jne 0x4129c2
call fcn.0049f380
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4129ba
call fcn.0049f380
mov esi, dword [esi]
jmp 0x412941
mov eax, dword [ebx]
jmp 0x412969
mov eax, dword [ebx]
jmp 0x4129b0
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x50]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov edi, edx
shr edi, 0x1f
add edi, edx
jne 0x4129e5
call fcn.0049f380
mov edx, dword [esp + 0x50]
push 1
xor esi, esi
push esi
push edi
push edx
lea eax, [ebp + 0x1c]
mov ecx, edi
call fcn.00406030
mov byte [esp + 0x3e0], 6
mov eax, dword [esp + 0x50]
cmp eax, esi
je 0x412a13
push eax
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x3e0], 2
mov eax, dword [esp + 0x44]
push eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call fcn.0049e96f
add esp, 4
mov edi, dword [ebp + 0x40]
sub edi, dword [ebp + 0x3c]
xor ebx, ebx
sar edi, 2
xor esi, esi
sub edi, 1
mov dword [esp + 0x2c], ebx
js 0x412a77
lea ebx, [ebx]
mov ecx, dword [ebp + 0x40]
sub ecx, dword [ebp + 0x3c]
sar ecx, 2
cmp edi, ecx
jb 0x412a62
call fcn.0049f380
mov edx, dword [ebp + 0x3c]
mov eax, dword [edx + edi*4]
add ebx, dword [eax + 0x5f4]
sub edi, 1
jns 0x412a50
mov dword [esp + 0x2c], ebx
push 4
call fcn.0049e995
add esp, 4
cmp eax, esi
je 0x412a8d
lea ecx, [esp + 0x74]
mov dword [eax], ecx
jmp 0x412a8f
xor eax, eax
mov dword [esp + 0x74], eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x78]
push eax
mov ecx, ebx
mov byte [esp + 0x3e8], 7
call fcn.00419610
push 0x31c
lea ecx, [esp + 0xbc]
push esi
mov byte [esp + 0x3e8], 8
push ecx
mov dword [esp + 0xc0], esi
call fcn.004a30a0
mov edi, dword [ebp + 0x40]
sub edi, dword [ebp + 0x3c]
add esp, 0xc
sar edi, 2
sub edi, 1
mov dword [esp + 0x14], esi
js 0x412bdc
mov edx, dword [ebp + 0x40]
sub edx, dword [ebp + 0x3c]
sar edx, 2
cmp edi, edx
jb 0x412af9
call fcn.0049f380
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0x3c]
mov esi, dword [eax + edi*4]
je 0x412bd3
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x80]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x412b2f
call fcn.0049f380
lea edx, [ebp + 0x8c]
push edx
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
lea ecx, [ebx + ebx*2]
lea eax, [edx + ecx*4]
push eax
lea ecx, [ebp + 0xf0]
push ecx
push edi
push esi
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x4c]
call fcn.0048cc10
mov ecx, dword [esp + 0x38]
sub ebx, eax
mov dword [esp + edi*4 + 0xb4], eax
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x1c]
jne 0x412b7c
cmp ecx, dword [esp + 0x20]
je 0x412b8c
cmp ecx, dword [esp + 0x20]
jb 0x412b9b
ja 0x412bd3
cmp eax, dword [esp + 0x1c]
jb 0x412b9b
jmp 0x412bd3
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x3c], edx
setb al
test al, al
je 0x412bd3
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x48]
cmp ecx, edx
jne 0x412bb1
cmp eax, dword [esp + 0x68]
je 0x412bbf
cmp eax, dword [esp + 0x68]
ja 0x412bce
jb 0x412bd3
cmp ecx, edx
ja 0x412bce
jmp 0x412bd3
mov eax, dword [esp + 0x6c]
cmp dword [esp + 0x4c], eax
seta al
test al, al
je 0x412bd3
mov byte [esp + 0x13], 1
sub edi, 1
jns 0x412ae7
mov ecx, dword [esp + 0x84]
sub ecx, dword [esp + 0x80]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov esi, edx
shr esi, 0x1f
add esi, edx
je 0x412c24
test esi, esi
ja 0x412c05
call fcn.0049f380
mov edx, dword [esp + 0x80]
push 0
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edx
lea eax, [ebp + 0x1c]
call fcn.00406030
lea esi, [ebp + 0x160]
xor ebx, ebx
mov dword [ebp + 0xec], 0xffffffff
call fcn.004114b0
mov esi, dword [ebp + 0x28]
mov byte [esp + 0x3e0], 9
mov eax, dword [esp + 0x80]
cmp eax, ebx
je 0x412c5a
push eax
call fcn.0049e96f
add esp, 4
mov byte [esp + 0x3e0], 2
mov eax, dword [esp + 0x74]
push eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], ebx
call fcn.0049e96f
mov edi, vtable.CEventRef.0
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], edi
call fcn.00405d80
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa0], edi
call fcn.00405d80
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp esi, 0x5f5e100
jbe 0x412cc3
mov esi, 0x5f5e100
mov ecx, dword [ebp + 0x18]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 3
push esi
push 0x102f
push ecx
call edi
cmp byte [esp + 0x13], 0
jne 0x412cea
cmp esi, ebx
jne 0x412cfd
cmp dword [0x4fe330], ebx
je 0x412cfd
mov eax, dword [ebp + 0x18]
xor edx, edx
cmp esi, ebx
sete dl
push edx
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp byte [esp + 0x3ec], 0
je 0x412d1f
cmp esi, dword [0x4fe330]
jbe 0x412d1f
mov edx, dword [ebp + 0x18]
push ebx
lea ecx, [esi - 1]
push ecx
push 0x1013
push edx
call edi
push ebp
mov dword [0x4fe330], esi
mov dword [esp + 0x64], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esp + 0x3e0], 0xa
mov eax, dword [ebp + 0x68]
mov ebx, dword [eax]
mov edi, dword [ebp + 0x54]
mov esi, dword [ebp + 0x68]
mov eax, dword [ebp + 0x54]
test edi, edi
je 0x412d51
cmp edi, eax
je 0x412d56
call fcn.0049f380
cmp ebx, esi
je 0x412e23
test edi, edi
jne 0x412df4
call fcn.0049f380
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x412d77
call fcn.0049f380
mov eax, dword [ebx + 8]
cmp dword [eax + 0x5d0], 1
mov dword [esp + 0x14], eax
jne 0x412e03
mov esi, ebx
test edi, edi
jne 0x412dfb
call fcn.0049f380
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x412d9e
call fcn.0049f380
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x5d0]
mov ebx, dword [ebx]
push edx
call fcn.0048c790
test al, al
je 0x412d43
mov eax, edi
test eax, eax
jne 0x412dff
call fcn.0049f380
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x412dcb
call fcn.0049f380
cmp esi, dword [ebp + 0x68]
je 0x412d43
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.0049e96f
add esp, 4
dec dword [ebp + 0x6c]
jmp 0x412d43
mov eax, dword [edi]
jmp 0x412d6d
mov eax, dword [edi]
jmp 0x412d94
mov eax, dword [eax]
jmp 0x412dc1
test edi, edi
jne 0x412e1f
call fcn.0049f380
xor eax, eax
cmp ebx, dword [eax + 0x14]
jne 0x412e18
call fcn.0049f380
mov ebx, dword [ebx]
jmp 0x412d43
mov eax, dword [edi]
jmp 0x412e0e
mov ecx, dword [ebp + 0x84]
mov edi, dword [ecx]
mov esi, dword [ebp + 0x70]
lea ebx, [ebp + 0x70]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx]
mov dword [esp + 0x18], edx
test esi, esi
je 0x412e42
cmp esi, eax
je 0x412e47
call fcn.0049f380
cmp edi, dword [esp + 0x18]
je 0x412ec6
test esi, esi
jne 0x412e9e
call fcn.0049f380
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x412e62
call fcn.0049f380
mov eax, dword [edi + 8]
cmp dword [eax + 0x5d0], 1
jne 0x412ea6
mov dword [esp + 0x30], edi
test esi, esi
jne 0x412ea2
call fcn.0049f380
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x412e87
call fcn.0049f380
mov ecx, dword [esp + 0x30]
mov edi, dword [edi]
push ecx
push esi
lea edx, [esp + 0x3c]
push edx
lea ebx, [ebp + 0x70]
call fcn.00416d80
jmp 0x412e31
mov eax, dword [esi]
jmp 0x412e58
mov eax, dword [esi]
jmp 0x412e7d
test esi, esi
jne 0x412ec2
call fcn.0049f380
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x412ebb
call fcn.0049f380
mov edi, dword [edi]
jmp 0x412e31
mov eax, dword [esi]
jmp 0x412eb1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x3d8]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3d4
ret 8