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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x5be174
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x5be8e6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x74]
call fcn.005ab914
cmp byte [ebx + 0x68], 0
jne 0x5be1bc
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
jne 0x5be1b3
mov dl, 2
mov eax, ebx
call fcn.005bfa88
jmp 0x5be1bc
mov dl, 1
mov eax, ebx
call fcn.005bfa88
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 8]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x5be28f
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [ebx + 0x74]
call fcn.005aba24
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x28]
cmp dword [ebp - 8], 0
je 0x5be287
cmp byte [ebx + 0x68], 1
jne 0x5be24e
push 0
mov eax, 0x5be900
mov dword [ebp - 0x38], eax
mov eax, 0x5be918
mov dword [ebp - 0x34], eax
mov eax, 0x5be930
mov dword [ebp - 0x30], eax
mov eax, 0x5be94c
mov dword [ebp - 0x2c], eax
mov eax, 0x5be968
mov dword [ebp - 0x28], eax
mov eax, 0x5be998
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x38]
mov ecx, 5
mov eax, dword [ebp - 8]
call fcn.00561ef8
inc eax
jne 0x5be287
mov edx, edi
mov eax, dword [ebx + 0x74]
call fcn.005aba24
mov edx, 0x5be94c
mov ecx, dword [eax]
call dword [ecx + 0x40]
jmp 0x5be287
push 0
mov eax, 0x5be9b8
mov dword [ebp - 0x40], eax
mov eax, 0x5be9cc
mov dword [ebp - 0x3c], eax
lea edx, [ebp - 0x40]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00561ef8
inc eax
jne 0x5be287
mov edx, edi
mov eax, dword [ebx + 0x74]
call fcn.005aba24
mov edx, 0x5be9b8
mov ecx, dword [eax]
call dword [ecx + 0x40]
inc edi
dec esi
jne 0x5be1d1
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
jle 0x5be2d6
cmp dword [ebx + 0x50], 0
je 0x5be2d6
push 0
mov eax, 0x5be900
mov dword [ebp - 0x4c], eax
mov eax, 0x5be918
mov dword [ebp - 0x48], eax
mov eax, 0x5be930
mov dword [ebp - 0x44], eax
lea edx, [ebp - 0x4c]
mov ecx, 2
mov eax, dword [ebx + 0x50]
call fcn.00561ef8
inc eax
jne 0x5be2d6
lea eax, [ebx + 0x50]
call fcn.00409124
cmp byte [ebx + 0x68], 1
jne 0x5be36b
mov eax, dword [ebx + 0x78]
call fcn.005bdb58
lea edx, [ebp - 0x10]
mov eax, dword [0x5b0cbc]
call fcn.005b0ff8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x78]
call fcn.005bdcd8
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x5be30f
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5be35e
mov eax, dword [ebx + 0x74]
cmp dword [eax + 0x2c], 1
jle 0x5be33e
cmp dword [eax + 0x20], 0
jle 0x5be330
mov edx, 0x5be9e0
mov eax, ebx
call fcn.005bf834
jmp 0x5be35e
mov edx, 0x5bea0c
mov eax, ebx
call fcn.005bf834
jmp 0x5be35e
cmp dword [eax + 0x20], 0
jle 0x5be352
mov edx, 0x5be9e0
mov eax, ebx
call fcn.005bf834
jmp 0x5be35e
mov edx, 0x5bea44
mov eax, ebx
call fcn.005bf834
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 0x24]
mov edx, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x16]
mov eax, ebx
call fcn.005bfc78
mov edx, dword [ebx + 0x70]
mov eax, dword [ebx + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [ebx + 0x68], 1
jne 0x5be39b
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 1
sete al
jmp 0x5be39d
xor eax, eax
test al, al
je 0x5be3aa
mov eax, ebx
call fcn.005be0b8
jmp 0x5be3ac
xor eax, eax
mov byte [ebx + 0xce], al
push 1
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0x6c]
call fcn.005a9ba4
mov ecx, dword [ebp - 0x50]
mov edx, 0x5bea68
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x54]
push eax
movzx ecx, word [ebp - 0x16]
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.005aa1c8
mov ecx, dword [ebp - 0x54]
mov edx, 0x5bea80
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
push 0
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0xa0]
call fcn.005a9ba4
mov ecx, dword [ebp - 0x58]
mov edx, 0x5bea9c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0x48]
call fcn.005a9ba4
mov ecx, dword [ebp - 0x5c]
mov edx, 0x5beab0
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
cmp byte [ebx + 0xcd], 0
jne 0x5be476
xor ecx, ecx
mov edx, 0x5beac4
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
jmp 0x5be49e
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0x3c]
call fcn.005a9ba4
mov ecx, dword [ebp - 0x60]
mov edx, 0x5beac4
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
lea edx, [ebp - 0x64]
mov eax, dword [ebx + 0x80]
call fcn.004514a4
mov ecx, dword [ebp - 0x64]
mov edx, 0x5bead8
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
cmp byte [ebx + 0x68], 1
jne 0x5be5dc
cmp byte [ebx + 0xce], 0
je 0x5be522
mov ecx, 0x5beafc
mov edx, 0x5beb10
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor ecx, ecx
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor ecx, ecx
mov edx, 0x5beb60
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor ecx, ecx
mov edx, 0x5beba0
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
jmp 0x5be64a
cmp dword [ebx + 0x4c], 0
je 0x5be5b2
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x44]
call fcn.0040954c
cmp dword [ebp - 0xc], 0
jne 0x5be55b
mov edx, 0x5bebd4
mov eax, dword [ebx + 0x4c]
call fcn.0058f5a0
test al, al
je 0x5be55b
lea eax, [ebp - 0xc]
mov edx, 0x5bebec
call fcn.0040954c
mov ecx, dword [ebx + 0x4c]
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x5bec0c
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590ffc
mov eax, dword [ebx + 0x74]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 0
jle 0x5be5b2
cmp dword [ebp - 0x10], 0
je 0x5be5b2
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x5bec28
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590ffc
mov ecx, 0x5beafc
mov edx, 0x5beb10
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov ecx, dword [ebx + 0x50]
mov edx, 0x5beb60
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
jmp 0x5be64a
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 0x44]
call fcn.0040954c
cmp dword [ebp - 0xc], 0
jne 0x5be60b
mov edx, 0x5bebd4
mov eax, dword [ebx + 0x4c]
call fcn.0058f5a0
test al, al
je 0x5be60b
lea eax, [ebp - 0xc]
mov edx, 0x5bebec
call fcn.0040954c
mov ecx, dword [ebx + 0x4c]
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x5bec0c
mov edx, 0x5beb38
mov eax, dword [ebx + 0xc8]
call fcn.00590ffc
mov ecx, dword [ebx + 0x50]
mov edx, 0x5beb60
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
lea edx, [ebp - 0x68]
mov eax, dword [ebx + 0xb0]
call fcn.005a6ff0
mov ecx, dword [ebp - 0x68]
mov edx, 0x5bec48
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
push 0
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0xac]
call fcn.005a9ba4
mov ecx, dword [ebp - 0x6c]
mov edx, 0x5bec64
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x70]
push eax
movzx ecx, word [ebp - 0x16]
xor edx, edx
mov eax, dword [ebx + 0x90]
call fcn.005aa1c8
mov ecx, dword [ebp - 0x70]
mov edx, 0x5bec84
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
movzx edx, word [ebp - 0x16]
mov eax, dword [ebx + 0x9c]
call fcn.005a924c
mov ecx, dword [ebp - 0x14]
mov edx, 0x5becac
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov ecx, dword [ebp - 0x14]
mov edx, 0x5becf0
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov ecx, dword [ebx + 0xa4]
mov edx, 0x5bed20
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, ebx
call fcn.005bfa20
test al, al
je 0x5be72c
call fcn.00427dc4
fstp qword [ebp - 0x20]
wait
jmp 0x5be738
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00564194
mov ecx, dword [ebp - 0x74]
mov edx, 0x5bed44
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
movzx eax, byte [ebx + 0x94]
cmp al, 2
je 0x5be7c3
and eax, 0x7f
mov ecx, dword [eax*4 + 0x9d8564]
mov edx, 0x5bed5c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
lea edx, [ebp - 0x78]
movzx eax, byte [ebx + 0x94]
inc eax
call fcn.00423b58
mov ecx, dword [ebp - 0x78]
mov edx, 0x5bed7c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
movzx eax, byte [ebx + 0x94]
mov ecx, dword [eax*4 + 0x9d8578]
mov edx, 0x5beda0
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
jmp 0x5be7f9
xor ecx, ecx
mov edx, 0x5bed5c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor ecx, ecx
mov edx, 0x5bed7c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor ecx, ecx
mov edx, 0x5beda0
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
cmp byte [ebx + 0xcd], 0
jne 0x5be816
xor ecx, ecx
mov edx, 0x5bedc4
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
jmp 0x5be829
mov ecx, dword [ebx + 0x7c]
mov edx, 0x5bedc4
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
mov eax, dword [ebx + 0x64]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5be843
mov edx, dword [ebx + 0x64]
mov eax, dword [ebx + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x40]
lea edx, [ebp - 0x7c]
mov eax, ebx
call fcn.005bfd38
cmp dword [ebp - 0x7c], 0
jne 0x5be898
lea ecx, [ebp - 0x80]
mov edx, 0x5bede8
mov eax, dword [ebx + 0xc8]
call fcn.00590c58
cmp dword [ebp - 0x80], 0
je 0x5be8bb
lea ecx, [ebp - 0x84]
mov edx, 0x5bede8
mov esi, dword [ebx + 0xc8]
mov eax, esi
call fcn.00590c58
mov ecx, dword [ebp - 0x84]
mov edx, 0x5bee0c
mov eax, esi
call fcn.00590f20
jmp 0x5be8bb
lea edx, [ebp - 0x88]
mov eax, ebx
call fcn.005bfd38
mov ecx, dword [ebp - 0x88]
mov edx, 0x5bee0c
mov eax, dword [ebx + 0xc8]
call fcn.00590f20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5be8ed
lea eax, [ebp - 0x88]
mov edx, 0xf
call fcn.00409184
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00409184
ret