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

Disassembly:
push 0xffffffffffffffff
push 0x5418b8
mov eax, dword fs:[0]
push eax
sub esp, 0x41c
mov eax, dword [0x595790]
xor eax, esp
mov dword [esp + 0x418], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x595790]
xor eax, esp
push eax
lea eax, [esp + 0x430]
mov dword fs:[0], eax
mov eax, dword [esp + 0x440]
push 0
push 0x596ea8
push 0x597480
push 0
push eax
mov dword [esp + 0x2c], eax
mov edi, ecx
call fcn.00533b9c
add esp, 0x14
mov dword [esp + 0x20], eax
call fcn.00417384
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f29d
push 0x80004005
call fcn.00401b40
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov dword [esp + 0x438], 0
mov esi, dword [edi]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add edi, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x40f3b8
mov ebx, dword [edi + 0xc]
cmp ebx, dword [edi + 0x10]
jbe 0x40f2df
call fcn.00515f7c
mov ebp, dword [edi]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebx
lea esp, [esp]
mov ebx, dword [edi + 0x10]
cmp dword [edi + 0xc], ebx
jbe 0x40f2fd
call fcn.00515f7c
mov eax, dword [edi]
test ebp, ebp
je 0x40f307
cmp ebp, eax
je 0x40f30c
call fcn.00515f7c
cmp dword [esp + 0x2c], ebx
je 0x40f443
test ebp, ebp
jne 0x40f33f
call fcn.00515f7c
mov edx, dword [esp + 0x2c]
cmp edx, dword [ebp + 0x10]
jb 0x40f32d
call fcn.00515f7c
mov ebx, dword [esp + 0x18]
mov ecx, dword [ebx + 0x50]
add ebx, 0x44
test ecx, ecx
jne 0x40f344
xor eax, eax
jmp 0x40f34c
mov ebp, dword [ebp]
jmp 0x40f31f
mov eax, dword [ebx + 0x14]
sub eax, ecx
sar eax, 2
mov ebp, dword [ebx + 0x10]
mov edx, ebp
sub edx, ecx
sar edx, 2
cmp edx, eax
jae 0x40f36b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [ebp], ecx
add ebp, 4
mov dword [ebx + 0x10], ebp
jmp 0x40f389
cmp ecx, ebp
jbe 0x40f374
call fcn.00515f7c
mov eax, dword [ebx]
mov edx, dword [esp + 0x2c]
push ebp
push eax
push edx
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.00411f40
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40f3b4
call fcn.00515f7c
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 0x10]
jb 0x40f3a6
call fcn.00515f7c
add dword [esp + 0x2c], 4
mov ebp, dword [esp + 0x28]
jmp 0x40f2f0
mov eax, dword [eax]
jmp 0x40f398
mov ebp, dword [edi + 0xc]
cmp ebp, dword [edi + 0x10]
jbe 0x40f3c5
call fcn.00515f7c
mov ebx, dword [edi]
jmp 0x40f3d0
mov eax, dword [edi + 0x10]
mov dword [esp + 0x28], eax
cmp dword [edi + 0xc], eax
jbe 0x40f3e1
call fcn.00515f7c
mov eax, dword [edi]
test ebx, ebx
je 0x40f3eb
cmp ebx, eax
je 0x40f3f0
call fcn.00515f7c
cmp ebp, dword [esp + 0x28]
je 0x40f443
test ebx, ebx
jne 0x40f43b
call fcn.00515f7c
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40f40b
call fcn.00515f7c
mov edx, dword [ebp]
mov ecx, dword [esp + 0x20]
push 0
push edx
call fcn.00419720
mov ecx, eax
call fcn.00419943
test ebx, ebx
jne 0x40f43f
call fcn.00515f7c
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40f436
call fcn.00515f7c
add ebp, 4
jmp 0x40f3d0
mov eax, dword [ebx]
jmp 0x40f401
mov eax, dword [ebx]
jmp 0x40f42c
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x40f453
jmp dword [eax*4 + 0x40fdf4]
cmp dword [esp + 0x444], 0
je 0x40f4ea
mov ebx, 3
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push 1
push ecx
mov ebp, eax
push edx
mov ecx, ebp
call fcn.00421167
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x38]
mov eax, dword [ebp + 0x20]
push 1
push 0
push 0x417
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40f4c5
mov eax, 1
mov ecx, dword [ebp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x415
push ecx
call ebx
mov eax, dword [esi + 0x40]
mov edx, dword [ebp + 0x20]
push eax
push 1
push 0x405
push edx
call ebx
mov ebx, 1
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [esi + 0x38]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esi + 0x3c]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x46f
push ecx
call ebp
mov eax, dword [esi + 0x40]
mov edx, dword [ebx + 0x20]
push eax
push 0
push 0x471
push edx
call ebp
cmp dword [esp + 0x30], 0
je case.default.0x40f453
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov eax, dword [0x59d5d4]
mov eax, dword [eax*4 + 0x597000]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00516767
lea eax, [esp + 0x50]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f566
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
cmp dword [esp + 0x444], 0
mov ebp, dword [esp + 0x24]
je 0x40f5d6
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ebx, 3
mov eax, edi
mov byte [esp + 0x43c], 1
call fcn.0040cf30
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
push ecx
add edx, 0x10
push edx
mov byte [esp + 0x444], 0
call fcn.004121a0
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov ebx, 1
mov eax, edi
mov byte [esp + 0x43c], 2
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
add ecx, 0x10
push ecx
mov byte [esp + 0x444], 0
call fcn.004121a0
jmp case.default.0x40f453
xor ebx, ebx
mov eax, edi
call fcn.0040cf30
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
push edx
call fcn.00419720
mov ebx, eax
mov eax, dword [esi + 0x40]
push eax
lea ecx, [esp + 0x40]
push 0x56f850
push ecx
call fcn.00516767
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
mov ecx, ebx
call fcn.00419836
cmp dword [esp + 0x30], 0
je case.default.0x40f453
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov eax, dword [0x59d5d4]
mov eax, dword [eax*4 + 0x597000]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00516767
lea eax, [esp + 0x50]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f690
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [esi], eax
mov byte [esp + 0x43c], 3
xor ebx, ebx
mov eax, edi
call fcn.0040cf30
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
push ecx
add edx, 0x10
push edx
mov byte [esp + 0x444], 0
call fcn.004121a0
jmp case.default.0x40f453
xor ebx, ebx
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x44]
cmp ebx, dword [esi + 0x48]
jbe 0x40f72f
call fcn.00515f7c
mov edi, dword [esi + 0x38]
mov ebp, dword [esi + 0x48]
cmp dword [esi + 0x44], ebp
jbe 0x40f73f
call fcn.00515f7c
mov eax, dword [esi + 0x38]
test edi, edi
je 0x40f74a
cmp edi, eax
je 0x40f74f
call fcn.00515f7c
cmp ebx, ebp
je 0x40f7a2
test edi, edi
jne 0x40f79a
call fcn.00515f7c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40f768
call fcn.00515f7c
mov edx, dword [ebx]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
push edx
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x40f79e
call fcn.00515f7c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40f795
call fcn.00515f7c
add ebx, 4
jmp 0x40f732
mov eax, dword [edi]
jmp 0x40f75e
mov eax, dword [edi]
jmp 0x40f78b
mov esi, dword [esi + 0x68]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x20]
push 0
push esi
push 0x14e
push eax
jmp 0x40fd97
xor ebx, ebx
mov eax, edi
call fcn.0040cf30
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00419720
mov edx, dword [esi + 0x40]
push ebx
cmp dword [esi + edx*4 + 0x38], ebx
je 0x40f7e9
mov eax, dword [eax + 0x20]
push 1
push 0xf1
push eax
jmp 0x40fd97
mov ecx, dword [eax + 0x20]
push 0
push 0xf1
push ecx
jmp 0x40fd97
mov ebx, 1
mov eax, edi
call fcn.0040cf30
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
push edx
call fcn.00419720
mov ecx, dword [esi + 0x38]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esi + 0x3c]
push eax
mov eax, dword [ebx + 0x20]
push ecx
push 0x46f
push eax
call ebp
mov eax, dword [esi + 0x40]
mov ecx, dword [ebx + 0x20]
push eax
push 0
push 0x471
push ecx
call ebp
cmp dword [esp + 0x30], 0
je 0x40f8dc
mov edx, dword [0x59d5d4]
mov eax, dword [edx*4 + 0x597000]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00516767
lea eax, [esp + 0x50]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f876
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
push eax
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov ebx, 1
mov eax, edi
mov byte [esp + 0x43c], 4
call fcn.0040cf30
mov ecx, dword [eax]
mov edx, dword [esp + 0x1c]
push ecx
add edx, 0x10
push edx
mov byte [esp + 0x444], 0
call fcn.004121a0
mov ebx, 3
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [esi + 0x48]
mov ebx, eax
mov eax, dword [esi + 0x4c]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x46f
push ecx
call ebp
mov eax, dword [esi + 0x50]
mov edx, dword [ebx + 0x20]
push eax
push 0
push 0x471
push edx
call ebp
cmp dword [esp + 0x30], 0
je case.default.0x40f453
mov ecx, dword [esi + 0x50]
mov edx, dword [esi + 0x4c]
mov eax, dword [0x59d5d4]
mov eax, dword [eax*4 + 0x597000]
push ecx
mov ecx, dword [esi + 0x48]
push edx
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00516767
lea eax, [esp + 0x50]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f952
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
mov eax, dword [esp + 0x24]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00405630
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x43c], 5
mov ebx, 3
jmp 0x40f6d4
mov ebx, 3
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x38]
push 1
push ecx
mov ebp, eax
push edx
mov ecx, ebp
call fcn.00421167
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x38]
mov eax, dword [ebp + 0x20]
push 1
push 0
push 0x417
push eax
inc ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x40f9fb
mov eax, 1
mov ecx, dword [ebp + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0
push 0x415
push ecx
call ebx
mov eax, dword [esi + 0x40]
mov edx, dword [ebp + 0x20]
push eax
push 1
push 0x405
push edx
call ebx
mov ebx, 1
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [esi + 0x38]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov eax, dword [esi + 0x3c]
push eax
push ecx
mov ecx, dword [ebx + 0x20]
push 0x46f
push ecx
call ebp
mov eax, dword [esi + 0x40]
mov edx, dword [ebx + 0x20]
push eax
push 0
push 0x471
push edx
call ebp
cmp dword [esp + 0x30], 0
je 0x40fb48
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
mov eax, dword [0x59d5d4]
mov eax, dword [eax*4 + 0x597000]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push ecx
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00516767
lea eax, [esp + 0x50]
add esp, 0x14
lea ecx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40faa0
sub eax, ecx
sar eax, 1
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d0
mov ebp, dword [esp + 0x24]
push ecx
add ebp, 0xfffffff0
mov dword [esp + 0x20], esp
mov ebx, esp
push ebp
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov ebx, 3
mov eax, edi
mov byte [esp + 0x43c], 6
call fcn.0040cf30
mov edx, dword [eax]
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
push edx
push ecx
mov dword [esp + 0x28], ecx
mov byte [esp + 0x444], 0
call fcn.004121a0
push ecx
mov dword [esp + 0x2c], esp
mov ebx, esp
push ebp
call fcn.00405630
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov ebx, 1
mov eax, edi
mov byte [esp + 0x43c], 7
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x444], 0
call fcn.004121a0
mov ebx, 4
mov eax, edi
call fcn.0040cf30
mov edx, dword [eax]
mov ecx, dword [esp + 0x20]
push edx
call fcn.00419720
push 0
push 0
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x20]
push 0x14b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esi + 0x54]
cmp ebx, dword [esi + 0x58]
jbe 0x40fb84
call fcn.00515f7c
mov edi, dword [esi + 0x48]
mov ebp, dword [esi + 0x58]
cmp dword [esi + 0x54], ebp
jbe 0x40fb94
call fcn.00515f7c
mov eax, dword [esi + 0x48]
test edi, edi
je 0x40fb9f
cmp edi, eax
je 0x40fba4
call fcn.00515f7c
cmp ebx, ebp
je 0x40fbf7
test edi, edi
jne 0x40fbef
call fcn.00515f7c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40fbbd
call fcn.00515f7c
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
jne 0x40fbf3
call fcn.00515f7c
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x40fbea
call fcn.00515f7c
add ebx, 4
jmp 0x40fb87
mov eax, dword [edi]
jmp 0x40fbb3
mov eax, dword [edi]
jmp 0x40fbe0
mov ecx, dword [esp + 0x18]
mov esi, dword [esi + 0x78]
mov edx, dword [ecx + 0x20]
jmp 0x40fd8e
xor ebx, ebx
mov eax, edi
call fcn.0040cf30
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
push eax
call fcn.00419720
mov ecx, dword [eax + 0x20]
push ebx
push ebx
push 0x14b
push ecx
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esi + 0x44]
cmp ebp, dword [esi + 0x48]
jbe 0x40fc3d
call fcn.00515f7c
mov ebx, dword [esi + 0x38]
mov eax, dword [esi + 0x48]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x44], eax
jbe 0x40fc51
call fcn.00515f7c
mov eax, dword [esi + 0x38]
test ebx, ebx
je 0x40fc5c
cmp ebx, eax
je 0x40fc61
call fcn.00515f7c
cmp ebp, dword [esp + 0x1c]
je 0x40fcb7
test ebx, ebx
jne 0x40fcaf
call fcn.00515f7c
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40fc7c
call fcn.00515f7c
mov edx, dword [ebp]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x20]
push edx
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
jne 0x40fcb3
call fcn.00515f7c
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40fcaa
call fcn.00515f7c
add ebp, 4
jmp 0x40fc40
mov eax, dword [ebx]
jmp 0x40fc72
mov eax, dword [ebx]
jmp 0x40fca0
mov eax, dword [esi + 0x68]
mov edx, dword [esp + 0x18]
push 0
push eax
mov eax, dword [edx + 0x20]
push 0x14e
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, 1
mov eax, edi
call fcn.0040cf30
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.00419720
push 0
push 0
mov ebp, eax
mov edx, dword [ebp + 0x20]
push 0x14b
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edi, dword [esi + 0x7c]
cmp edi, dword [esi + 0x80]
jbe 0x40fd0d
call fcn.00515f7c
mov ebx, dword [esi + 0x70]
mov eax, dword [esi + 0x80]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x7c], eax
jbe 0x40fd24
call fcn.00515f7c
mov eax, dword [esi + 0x70]
test ebx, ebx
je 0x40fd2f
cmp ebx, eax
je 0x40fd34
call fcn.00515f7c
cmp edi, dword [esp + 0x1c]
je 0x40fd85
test ebx, ebx
jne 0x40fd7d
call fcn.00515f7c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40fd4f
call fcn.00515f7c
mov eax, dword [edi]
mov ecx, dword [ebp + 0x20]
push eax
push 0
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test ebx, ebx
jne 0x40fd81
call fcn.00515f7c
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x40fd78
call fcn.00515f7c
add edi, 4
jmp 0x40fd10
mov eax, dword [ebx]
jmp 0x40fd45
mov eax, dword [ebx]
jmp 0x40fd6e
mov esi, dword [esi + 0xa0]
mov edx, dword [ebp + 0x20]
push 0
push esi
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x438], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40fdc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x430]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x418]
xor ecx, esp
call fcn.00515ce5
add esp, 0x428
ret 8