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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
mov edi, ecx
cmp byte [edi + 0x1c0], 0
je 0x4999e1
mov eax, dword [edi + 0x180]
mov eax, dword [eax]
push 0
push 0
push 0x421
push eax
call esi
cmp eax, 1
je 0x4999e1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
and eax, 4
mov dword [esp + 0x44], eax
je 0x4999f6
lea ecx, [edi + 0x3c]
mov dword [esp + 0x2c], ecx
jmp 0x4999fd
lea edx, [edi + 0x24]
mov dword [esp + 0x2c], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [0x514540]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x514540
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add eax, 0x10
cmp byte [edi + 0x19b], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
je 0x499a69
cmp byte [edi + 0x195], 0
jne 0x499a60
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x40]
push eax
push ecx
mov edx, ebx
push edx
call fcn.00495390
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
call fcn.00402a90
mov ebx, dword [esp + 0x3c]
cmp byte [edi + 0x19b], 0
jne 0x499a72
cmp byte [edi + 0x195], 0
je 0x499a8b
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
lea eax, [esp + 0x34]
push eax
push ecx
push edx
call fcn.00495390
add esp, 0xc
mov dword [esp + 0x30], eax
test byte [ebp + 0x18], 0x10
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
seta dl
test byte [ebp + 0x18], 1
movzx edx, dl
push edx
seta dl
movzx edx, dl
push edx
mov edx, dword [esp + 0x48]
push edx
push ebx
call eax
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
push 0
push 0
push 0x408
push ecx
call esi
test byte [ebp + 0x18], 2
mov dword [esp + 0x48], eax
je 0x499adc
cmp dword [esp + 0x44], 0
mov byte [esp + 0xf], 1
je 0x499ae1
mov byte [esp + 0xf], 0
mov ecx, dword [edi + 0x180]
lea ebx, [eax - 1]
lea edx, [esp + 0x60]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x6c]
push eax
push 0x422
push edx
mov dword [esp + 0x50], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], 0
call esi
cmp byte [edi + 0x1c0], 0
je 0x499b2d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov ebx, eax
mov edx, dword [edi + 0x180]
mov eax, dword [edx]
push 0
push 0
push 0xb
push eax
call esi
mov eax, dword [edi + 0x180]
mov ecx, dword [eax]
push 0
push 1
push 0x427
push ecx
mov dword [esp + 0x5c], eax
call esi
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
jl 0x499dc5
mov eax, dword [esp + 0x48]
mov ecx, dword [edi + 0x180]
lea edx, [esp + 0x14]
push edx
push ebx
push eax
push ecx
lea ecx, [edi + 0x24]
mov dword [esp + 0x24], 0
call fcn.00492000
cmp byte [edi + 0x1c0], 0
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
je 0x499bcb
cmp ebx, dword [esp + 0x28]
jne 0x499bbc
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
inc ecx
cmp ecx, eax
jne 0x499bbc
mov dword [esp + 0x10], eax
cmp ebx, dword [esp + 0x24]
jne 0x499bcb
mov edx, dword [esp + 0x6c]
inc edx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jl 0x499da7
jmp 0x499be8
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
lea ebx, [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push esi
push eax
mov eax, dword [edx + 0xc]
push esi
mov dword [esp + 0x2c], 0
call eax
mov ebx, eax
test ebx, ebx
je 0x499da3
mov eax, dword [esp + 0x38]
mov esi, ebx
sub esi, eax
sar esi, 1
cmp byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
je 0x499c43
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
push ebx
call fcn.00436fa0
add esp, 0x10
test al, al
je 0x499d86
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
lea ecx, [esi + eax]
cmp ecx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], ecx
jl 0x499c71
inc edx
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x1c]
dec ecx
cmp esi, ecx
jl 0x499d9f
cmp byte [edi + 0x195], 0
je 0x499d1c
mov ecx, dword [esp + 0x34]
push 0
push 0
push 1
push 0xffffffffffffffff
lea edx, [esp + 0x54]
push edx
mov edx, dword [esp + 0x44]
push ecx
push edx
push eax
push ebx
lea ecx, [edi + 0x48]
mov dword [esp + 0x68], 0
call fcn.00498020
lea ecx, [esp + 0x50]
push ecx
mov ebx, eax
mov eax, dword [edi + 0x180]
mov eax, dword [eax]
lea edx, [esp + 0x5c]
push edx
push 0x410
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x78], ecx
mov esi, eax
mov eax, dword [edi + 0x180]
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
push ecx
neg esi
push 0x411
sbb esi, esi
push edx
neg esi
mov dword [esp + 0x80], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], eax
test ebx, ebx
je 0x499d77
push ebx
call fcn.0049e944
add esp, 4
jmp 0x499d77
mov eax, dword [edi + 0x180]
mov eax, dword [eax]
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x5c]
push edx
push 0x410
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x78], ecx
lea ecx, [esp + 0x78]
push ecx
mov esi, eax
mov eax, dword [edi + 0x180]
mov eax, dword [eax]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x5c]
push edx
neg esi
push 0x411
sbb esi, esi
push eax
neg esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x44], eax
cmp dword [esp + 0x44], 0
jne 0x499d82
test esi, esi
je 0x499d86
inc dword [esp + 0x40]
cmp dword [esp + 0x18], 0
jne 0x499d91
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esp + 0x1c]
jge 0x499be0
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x20]
push esi
call fcn.0049e4c4
dec ebx
add esp, 4
cmp ebx, dword [esp + 0x24]
mov dword [esp + 0x20], ebx
jge 0x499b64
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [edi + 0x180]
mov eax, dword [edx]
push 0
push 1
push 0xb
push eax
call esi
cmp byte [edi + 0x1c0], 0
je 0x499df9
mov eax, dword [edi + 0x180]
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
push edx
push 0x420
push ecx
call esi
mov edx, dword [edi + 0x180]
mov eax, dword [edx]
push 0
push 0
push 0x44a
push eax
call esi
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
push 0
push 0
push 0x427
push edx
call esi
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499e3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14