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

Disassembly:
push 0xffffffffffffffff
push 0x52d564
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
mov ebx, dword [esp + 0x198]
push ebp
push esi
push edi
xor edi, edi
lea ebp, [ebx + 0xc]
push 0xf4240
mov dword [esp + 0x34], ecx
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.004295c0
cmp dword [ebx + 0x394], edi
jne 0x4bf5df
mov eax, dword [ebx + 0x248]
cmp eax, 0x20003
je 0x4bf5df
cmp eax, 0x10002
je 0x4bf5df
xor esi, esi
jmp 0x4bf5e4
mov esi, 1
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp esi, edi
jne 0x4bfdd6
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 0x10001
push ecx
mov ecx, ebx
call fcn.004a5480
lea ecx, [esp + 0x110]
mov dword [esp + 0x19c], edi
call fcn.00457b30
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 1
call fcn.004608a0
push 0xf4240
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.004295c0
lea edx, [ebx + 0x34]
lea ecx, [esp + 0x74]
push edx
mov byte [esp + 0x1a0], 3
call fcn.00461150
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x19c], 2
mov eax, dword [ecx]
call dword [eax + 0x14]
lea ecx, [esp + 0x4c]
call fcn.00506564
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 4
push ecx
mov ecx, ebx
call fcn.004a5480
lea edx, [esp + 0x4c]
mov byte [esp + 0x19c], 5
push edx
push 0x55f080
push eax
call fcn.00499270
add esp, 0xc
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], edi
cmp eax, edi
jle 0x4bfb29
mov eax, dword [esp + 0x50]
lea ecx, [eax + edi*4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00507aaf
mov esi, dword [esp + 0x10]
push 0xf4240
push 0
push ebp
lea ecx, [esp + 0x4c]
call fcn.004295c0
push esi
lea ecx, [ebx + 0x210]
mov byte [esp + 0x1a0], 7
call fcn.00507ec3
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x19c], 6
mov edx, dword [ecx]
call dword [edx + 0x14]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x74]
push 0x56e1f4
lea ecx, [esp + 0x114]
push eax
push ecx
push edx
call fcn.00409f00
add esp, 0x10
test eax, eax
jne 0x4bf744
mov ecx, dword [esp + 0x30]
push 1
lea eax, [esp + 0x114]
push 1
push eax
push ebx
call fcn.004af370
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
and ecx, 0xffff0000
cmp ecx, 0x10000
je 0x4bf76c
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
jmp 0x4bfb18
lea ecx, [esp + 0x110]
call fcn.0040cb60
test eax, eax
jne 0x4bf792
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
jmp 0x4bfb18
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
add eax, 8
push eax
mov dword [esp + 0x20], eax
call fcn.0050c4a3
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
mov dword [esp + 0x2c], edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp]
mov esi, dword [ebx + 0x308]
mov ecx, ebp
call dword [edx + 0x14]
mov dword [edi], esi
mov eax, dword [esp + 0x10]
add edi, 8
mov dword [esp + 0x60], 0x359
mov eax, dword [eax - 8]
mov dword [edi - 4], eax
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi - 8]
mov dword [esp + 0x64], eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x68], esi
mov eax, dword [edi + 8]
test eax, eax
je 0x4bf82e
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4bf82e
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x60]
push ecx
push edx
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call fcn.0050c4cc
xor esi, esi
add esp, 4
lea ecx, [esp + 0x110]
mov dword [esp + 0x1c], esi
call fcn.0040cb60
test eax, eax
jle 0x4bfad4
push esi
lea ecx, [esp + 0x114]
call fcn.0040cb50
mov esi, eax
mov eax, dword [esi + 0x18]
cmp eax, 3
jne 0x4bf8b8
mov eax, dword [esi + 0xc]
push eax
call fcn.0048d730
add esp, 4
lea ecx, [ebp + 8]
mov edi, eax
mov dword [esp + 0x70], edx
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebx + 0x278]
mov ecx, dword [ebx + 0x27c]
mov eax, dword [ebx + 0x280]
add edx, edi
mov dword [ebx + 0x278], edx
mov edx, dword [esp + 0x70]
adc ecx, edx
inc eax
mov dword [ebx + 0x27c], ecx
mov dword [ebx + 0x280], eax
mov eax, dword [ebp]
mov ecx, ebp
jmp 0x4bf906
test eax, eax
jne 0x4bf8dd
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x284]
mov ecx, ebp
inc eax
mov dword [ebx + 0x284], eax
mov edx, dword [ebp]
call dword [edx + 0x14]
jmp 0x4bf909
cmp eax, 1
jne 0x4bf909
push 0xf4240
push 0
push ebp
lea ecx, [esp + 0x48]
call fcn.004295c0
mov eax, dword [ebx + 0x288]
mov ecx, dword [esp + 0x3c]
inc eax
mov dword [ebx + 0x288], eax
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x4bfab7
lea ecx, [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [ebp]
mov edi, dword [ebx + 0xb8]
mov ecx, ebp
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push eax
push edi
call fcn.0040dc00
push ecx
add esi, 4
mov ecx, esp
mov dword [esp + 0x30], esp
push esi
mov byte [esp + 0x1a4], 8
call fcn.00507aaf
lea ecx, [esp + 0x3c]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040dd40
lea ecx, [esp + 0x38]
call fcn.00507d3a
lea edx, [esp + 0x48]
lea ecx, [esp + 0x24]
push edx
call fcn.00461000
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push ecx
push eax
mov byte [esp + 0x1a4], 9
call fcn.00425c60
add esp, 8
lea ecx, [esp + 0x48]
mov esi, eax
mov byte [esp + 0x19c], 8
call fcn.00507d3a
test esi, esi
lea ecx, [esp + 0x24]
jne 0x4bfaaa
lea edx, [esp + 0x44]
push edx
call fcn.00461000
mov esi, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 8]
mov dword [esp + 0x2c], ebp
push eax
call edi
push esi
lea ecx, [ebx + 0x210]
mov byte [esp + 0x1a0], 0xb
call fcn.00507ec3
mov edx, dword [ebp]
mov ecx, ebp
mov byte [esp + 0x19c], 0xa
call dword [edx + 0x14]
lea ecx, [esp + 0x44]
mov byte [esp + 0x19c], 8
call fcn.00507d3a
lea eax, [ebp + 8]
push eax
call edi
mov eax, dword [ebx + 0x394]
test eax, eax
jne 0x4bfa28
mov eax, dword [ebx + 0x248]
cmp eax, 0x20003
je 0x4bfa28
cmp eax, 0x10002
je 0x4bfa28
xor esi, esi
jmp 0x4bfa2d
mov esi, 1
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x14]
test esi, esi
jne 0x4bfbcd
mov ecx, dword [esp + 0x30]
push ebx
call fcn.004bf580
mov esi, eax
and eax, 0xffff0000
cmp eax, 0x10000
mov dword [esp + 0x20], esi
jne 0x4bfc5d
push 0xf4240
push 0
push ebp
lea ecx, [esp + 0x40]
call fcn.004295c0
mov eax, dword [ebx + 0x394]
test eax, eax
jne 0x4bfa90
mov eax, dword [ebx + 0x248]
cmp eax, 0x20003
je 0x4bfa90
cmp eax, 0x10002
je 0x4bfa90
xor esi, esi
jmp 0x4bfa95
mov esi, 1
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
call dword [edx + 0x14]
test esi, esi
lea ecx, [esp + 0x24]
jne 0x4bfd0a
mov byte [esp + 0x19c], 6
call fcn.00507d3a
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x110]
inc esi
mov dword [esp + 0x1c], esi
call fcn.0040cb60
cmp esi, eax
jl 0x4bf851
lea ecx, [esp + 0x110]
call fcn.0040c780
push 0
push 0
push 0xa
mov ecx, ebx
call fcn.004d1c70
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x10]
mov eax, esi
mov byte [esp + 0x19c], 4
and eax, 0xffff0000
cmp eax, 0x10000
jne 0x4bfde0
call fcn.00507d3a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x54]
inc edi
cmp edi, eax
mov dword [esp + 0x14], edi
jl 0x4bf6bc
mov esi, dword [esp + 0x18]
push 0xf4240
push 0
push ebp
lea ecx, [esp + 0x40]
call fcn.004295c0
push esi
lea ecx, [ebx + 0x210]
mov byte [esp + 0x1a0], 0x1b
call fcn.00507ec3
mov ecx, dword [esp + 0x34]
mov byte [esp + 0x19c], 4
mov edx, dword [ecx]
call dword [edx + 0x14]
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00506597
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 1
call fcn.00404c90
lea ecx, [esp + 0x110]
mov byte [esp + 0x19c], 0
call fcn.00457b70
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00507d3a
mov eax, 0x10001
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x190
ret 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 6
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00506597
lea ecx, [esp + 0xd8]
mov byte [esp + 0x19c], 0x10
call fcn.00406c60
lea ecx, [esp + 0xd4]
mov byte [esp + 0x19c], 0xf
call fcn.00507d3a
lea ecx, [esp + 0xd0]
mov byte [esp + 0x19c], 0xe
call fcn.00507d3a
lea ecx, [esp + 0xcc]
mov byte [esp + 0x19c], 0xd
call fcn.00507d3a
mov byte [esp + 0x19c], 0xc
jmp 0x4bfd91
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 6
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00506597
lea ecx, [esp + 0xd8]
mov byte [esp + 0x19c], 0x15
call fcn.00406c60
lea ecx, [esp + 0xd4]
mov byte [esp + 0x19c], 0x14
call fcn.00507d3a
lea ecx, [esp + 0xd0]
mov byte [esp + 0x19c], 0x13
call fcn.00507d3a
lea ecx, [esp + 0xcc]
mov byte [esp + 0x19c], 0x12
call fcn.00507d3a
lea ecx, [esp + 0xb0]
mov byte [esp + 0x19c], 0x11
call fcn.00404e10
lea ecx, [esp + 0x78]
mov byte [esp + 0x19c], 1
call fcn.00404d90
jmp 0x4bfe07
mov byte [esp + 0x19c], 6
call fcn.00507d3a
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 4
call fcn.00507d3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00506597
lea ecx, [esp + 0xd8]
mov byte [esp + 0x19c], 0x1a
call fcn.00406c60
lea ecx, [esp + 0xd4]
mov byte [esp + 0x19c], 0x19
call fcn.00507d3a
lea ecx, [esp + 0xd0]
mov byte [esp + 0x19c], 0x18
call fcn.00507d3a
lea ecx, [esp + 0xcc]
mov byte [esp + 0x19c], 0x17
call fcn.00507d3a
mov byte [esp + 0x19c], 0x16
lea ecx, [esp + 0xb0]
call fcn.00404e10
lea ecx, [esp + 0x78]
mov byte [esp + 0x19c], 1
call fcn.00404d90
lea ecx, [esp + 0x110]
mov byte [esp + 0x19c], 0
call fcn.00457b70
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00507d3a
mov eax, 0x30004
jmp 0x4bfbb2
call fcn.00507d3a
lea ecx, [esp + 0x4c]
mov byte [esp + 0x19c], 2
call fcn.00506597
lea ecx, [esp + 0x74]
mov byte [esp + 0x19c], 1
call fcn.00404c90
lea ecx, [esp + 0x110]
mov byte [esp + 0x19c], 0
call fcn.00457b70
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00507d3a
mov eax, esi
jmp 0x4bfbb2