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

Disassembly:
push 0xffffffffffffffff
push 0x5ab752
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6336a0]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x10c]
mov ebp, dword [esp + 0x104]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x18], edi
jl 0x491cfd
cmp ebx, dword [ebp + 0x14]
jge 0x491cfd
mov esi, dword [esp + 0x108]
mov edx, esi
call fcn.00538860
test eax, eax
je 0x491cdd
lea ecx, [esp + 0x38]
call fcn.0055d17f
mov dword [esp + 0xfc], edi
xor esi, esi
lea edi, [ebp + 8]
jmp 0x491867
mov ebx, dword [esp + 0x10c]
test esi, esi
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
jl 0x4918fc
cmp esi, ecx
jg 0x4918fc
lea eax, [eax + esi*2]
push 0x5e9fdc
push eax
call fcn.0057781d
add esp, 8
test eax, eax
je 0x4918fc
sub eax, dword [edi]
sar eax, 1
mov ebx, eax
js 0x4918f5
mov ecx, ebx
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
call fcn.00423ae0
push eax
mov byte [esp + 0x100], 1
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x40]
call fcn.0055d4af
mov byte [esp + 0xfc], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4918ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebx + 1]
test esi, esi
jge 0x491860
mov ebx, dword [esp + 0x10c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x49193e
mov eax, dword [eax - 0xc]
sub eax, esi
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
call fcn.00401a60
mov byte [esp + 0xfc], 2
mov edx, dword [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0x40]
call fcn.0055d4af
lea ecx, [esp + 0x14]
mov byte [esp + 0xfc], 0
call fcn.00401f20
call fcn.00555692
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x491958
push 0x80004005
call fcn.00401f90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x108]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x100], 3
call fcn.00538c60
add esp, 4
lea edx, [esp + 0x50]
push edx
call fcn.00491dd0
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc], 4
call fcn.0055d17f
mov dword [esp + 0x20], vtable.CStringArrayEx.0
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [ebp + 4]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0x10c], 5
call fcn.0048fb10
add esp, 0x10
cmp ebx, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
lea esi, [ebx*4]
mov edi, dword [eax + esi]
add eax, esi
add edi, 8
lea ebx, [esp + 0x50]
call fcn.0047c880
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + esi]
add eax, esi
add edi, 0x1c
lea ebx, [esp + 0x64]
call fcn.0047c880
mov edx, dword [esp + 0x10c]
cmp edx, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + esi]
add eax, esi
add edi, 0x30
lea ebx, [esp + 0x78]
call fcn.0047c880
mov eax, dword [esp + 0x10c]
cmp eax, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + esi]
add eax, esi
add edi, 0x44
lea ebx, [esp + 0x8c]
call fcn.0047c880
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + esi]
add eax, esi
add edi, 0x58
lea ebx, [esp + 0xa0]
call fcn.0047c880
mov edx, dword [esp + 0x10c]
cmp edx, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
add eax, esi
mov esi, dword [eax]
add esi, 0x6c
lea edi, [esp + 0xb4]
call fcn.0047d230
mov esi, dword [esp + 0x10c]
cmp esi, dword [ebp + 0x14]
jge 0x491cd8
mov eax, dword [ebp + 0x10]
lea ecx, [esi*4]
mov edi, dword [eax + ecx]
add eax, ecx
add edi, 0x80
lea ebx, [esp + 0xc8]
call fcn.0047c880
lea ebx, [esp + 0xdc]
lea edi, [esp + 0x20]
call fcn.0047c880
cmp esi, dword [ebp + 0x14]
jge 0x491cd8
push esi
mov ecx, ebp
call fcn.00491f30
test esi, esi
je 0x491b1b
mov eax, dword [ebp + 0xc0]
mov ecx, dword [ebp + 0xbc]
push eax
push 0
push 0x601
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x28]
xor esi, esi
test eax, eax
mov dword [esp + 0x14], esi
jle 0x491c75
test esi, esi
jl 0x491cd8
cmp esi, eax
jge 0x491cd8
mov eax, dword [esp + 0x24]
mov edx, dword [eax + esi*4]
cmp dword [edx - 0xc], 0
je 0x491b91
mov ebx, edx
mov edi, ebp
call fcn.00492800
test eax, eax
jge 0x491b91
cmp esi, dword [esp + 0x28]
jge 0x491cd8
mov eax, dword [esp + 0x24]
push 5
lea edx, [esp + 0x38]
lea ecx, [eax + esi*4]
push edx
call fcn.00401a60
mov eax, dword [eax]
or dword [esp + 0x18], 1
push 0x5f21f0
push eax
call fcn.00577334
add esp, 8
test eax, eax
je 0x491b91
mov bl, 1
jmp 0x491b93
xor bl, bl
test byte [esp + 0x18], 1
je 0x491bbf
mov eax, dword [esp + 0x34]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491bbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x491c62
push 0x9c
call fcn.0055514b
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0xfc], 6
je 0x491bee
push eax
call fcn.004916e0
mov ebx, eax
jmp 0x491bf0
xor ebx, ebx
mov byte [esp + 0xfc], 5
cmp esi, dword [esp + 0x28]
jge 0x491cd8
mov ecx, dword [esp + 0x24]
lea eax, [ecx + esi*4]
push eax
mov ecx, ebx
call fcn.00402330
mov dword [ebx + 4], 0
mov dword [ebx + 0x94], ebp
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x98], eax
lea eax, [ebp + 0xc]
mov ebp, dword [eax + 8]
test ebp, ebp
jl 0x491cd8
mov esi, dword [esp + 0x104]
lea edi, [ebp + 1]
add esi, 0xc
call fcn.00541660
mov eax, dword [esp + 0x104]
mov edx, dword [eax + 0x10]
mov esi, dword [esp + 0x14]
add eax, 0xc
mov dword [edx + ebp*4], ebx
mov ebp, dword [esp + 0x104]
mov eax, dword [esp + 0x28]
add esi, 1
cmp esi, eax
mov dword [esp + 0x14], esi
jl 0x491b2d
lea ecx, [esp + 0x20]
mov byte [esp + 0xfc], 4
call fcn.0055d21d
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x100], 3
call fcn.00491e80
mov byte [esp + 0xfc], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x491cc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x38]
mov dword [esp + 0xfc], 0xffffffff
call fcn.0055d21d
xor edi, edi
jmp 0x491cfd
call fcn.00555520
mov edx, esi
call fcn.00538b50
cmp eax, 3
mov dword [ebp + 0xb0], eax
jne 0x491cfd
cmp ebx, dword [ebp + 0x14]
jge 0x491cd8
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + ebx*4]
mov dword [edx + 4], edi
xor eax, eax
cmp dword [ebp + 0xdc], edi
jle 0x491d82
mov ecx, dword [esp + 0x108]
mov edi, edi
cmp eax, edi
jl 0x491cd8
cmp eax, dword [ebp + 0xdc]
jge 0x491cd8
mov edx, dword [ebp + 0xd8]
cmp dword [edx + eax*4], ecx
je 0x491d34
add eax, 1
cmp eax, dword [ebp + 0xdc]
jl 0x491d10
jmp 0x491d7c
mov ecx, dword [ebp + 0xdc]
lea edx, [eax + 1]
cmp edx, ecx
jg 0x491cd8
cmp edx, eax
jl 0x491cd8
cmp edx, 1
jl 0x491cd8
sub ecx, edx
mov esi, ecx
je 0x491d75
mov ecx, dword [ebp + 0xd8]
lea edx, [ecx + edx*4]
lea eax, [ecx + eax*4]
lea ecx, [esi*4]
push ecx
push edx
push ecx
push eax
call fcn.00577148
push eax
call fcn.00402660
add esp, 0x14
add dword [ebp + 0xdc], 0xffffffff
cmp dword [ebp + 0xdc], edi
jne 0x491db0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 0xbc]
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc0]
push eax
push edi
push 0x5ff
push ecx
mov dword [ebp + 0xc8], edi
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xec
ret 0xc