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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x194]
add eax, dword [ebx + 0x9b4]
mov ecx, dword [ebx + 0x198]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x9bc]
add eax, ecx
mov edx, dword [ebx + 0x1868]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x130]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x14]
add eax, ecx
and dword [ebp - 0x24], 0
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x18]
add eax, ecx
mov dword [ebp - 0x3c], eax
push esi
mov esi, dword [ebx + 0x9b8]
add esi, ecx
lea eax, [ebx + 0x1888]
mov ecx, dword [eax]
mov ecx, dword [ebx + ecx*4 + 0x1870]
push edi
mov edi, dword [ebx + 0xaf4]
mov dword [edx], ecx
mov eax, dword [eax]
mov eax, dword [ebx + eax*4 + 0x187c]
mov ecx, dword [ebx + 0x186c]
mov dword [ecx], eax
mov eax, dword [ebx + 0x10e0]
mov ecx, dword [ebx + eax*8 + 0x10ec]
mov dword [ebx + 0x10e4], ecx
mov eax, dword [ebx + eax*8 + 0x10f0]
mov dword [ebx + 0x10e8], eax
mov dword [ebx + 0x4a0], 1
inc dword [0x587084]
xor ecx, ecx
cmp dword [ebx + 0x1930], ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], edi
jne 0x5b8c36
cmp dword [ebx + 0x1934], ecx
je 0x5b8c47
push ecx
push ecx
push dword [ebx + 0x24c]
mov ecx, ebx
call fcn.0059a487
xor ecx, ecx
lea eax, [ebx + 0x638]
mov edx, dword [eax]
mov dword [edx + 0x24], ecx
mov ecx, dword [eax]
push 1
push dword [ebx + 0x1a8]
push dword [ebx + 0xf58]
call fcn.0058153a
xor ecx, ecx
cmp dword [ebx + 0xbc], ecx
mov dword [ebp - 4], ecx
jbe 0x5b9052
cmp dword [ebx + 0x49c], ecx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
je 0x5b8c9a
push dword [ebp - 4]
mov ecx, ebx
call fcn.00587fc1
test eax, eax
jne 0x5b91ab
xor ecx, ecx
cmp dword [ebx + 0xb8], ecx
mov dword [ebp - 8], ecx
jbe 0x5b901e
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
sub eax, edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
sub dword [ebp - 0x28], esi
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x18]
sub eax, esi
mov dword [ebp - 0x1c], eax
jmp 0x5b8ccf
xor ecx, ecx
cmp dword [ebx + 0x1930], ecx
jne 0x5b8cdf
cmp dword [ebx + 0x1934], ecx
je 0x5b8ced
mov ecx, ebx
call fcn.0059a684
mov ecx, ebx
call fcn.0059a30b
push 2
mov byte [edi + 0x3c], 2
mov byte [edi + 0x3d], 2
push dword [ebx + 0x560]
mov ecx, ebx
call fcn.0056e23a
cmp dword [ebx + 0x494], 0
jne 0x5b8d24
mov ecx, dword [ebx + 0xf78]
push 1
call fcn.0057514d
neg eax
sbb al, al
and eax, 2
mov byte [edi + 0x58], al
cmp byte [edi + 0x58], 0
jne 0x5b8dcf
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
call fcn.005b610c
test eax, eax
jne 0x5b9387
push dword [ebx + 0x4b0]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005b7fa5
test eax, eax
je 0x5b8d9f
xor eax, eax
cmp dword [ebx + 0x1930], eax
jne 0x5b8d6d
cmp dword [ebx + 0x1934], eax
je 0x5b8d7a
push eax
push 0x4000
mov ecx, ebx
call fcn.0059a3a0
xor eax, eax
add edi, 0x38
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push esi
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.005b883e
jmp 0x5b8f28
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
add eax, esi
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, esi
push ecx
push esi
push eax
push edi
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
call fcn.005b7e5a
jmp 0x5b8f28
cmp dword [ebx + 0x1930], 0
jne 0x5b8de1
cmp dword [ebx + 0x1934], 0
je 0x5b8de8
mov ecx, ebx
call fcn.0059a2c9
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
push edi
call fcn.005b6786
test eax, eax
jne 0x5b9387
push dword [ebx + 0x4b0]
mov ecx, ebx
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.005b811e
mov eax, dword [ebx + 0x4b0]
add eax, 8
push eax
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
call fcn.005b823b
mov eax, dword [ebx + 0x4b0]
test byte [eax + 3], 0x20
je 0x5b8e7a
xor eax, eax
cmp dword [ebx + 0x1930], eax
jne 0x5b8e46
cmp dword [ebx + 0x1934], eax
je 0x5b8e54
push eax
push eax
push 0x4000
mov ecx, ebx
call fcn.0059a3dc
xor eax, eax
add edi, 0x38
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push esi
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.005b895c
mov edi, dword [ebp - 0x10]
jmp 0x5b8ea5
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
add eax, esi
add edx, eax
push edx
mov edx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
add edx, eax
push edx
add ecx, esi
push ecx
push esi
push eax
push edi
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
call fcn.005b7c1c
xor ecx, ecx
cmp eax, ecx
jne 0x5b9387
mov eax, dword [ebx + 0x4b0]
test byte [eax + 0xb], 0x20
je 0x5b8efd
cmp dword [ebx + 0x1930], ecx
jne 0x5b8ecb
cmp dword [ebx + 0x1934], ecx
je 0x5b8eda
push 1
push ecx
push 0x4000
mov ecx, ebx
call fcn.0059a3dc
xor eax, eax
add edi, 0x3a
stosw word es:[edi], ax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push esi
push dword [ebp - 0xc]
mov ecx, ebx
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.005b8a64
jmp 0x5b8f28
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
add eax, esi
add ecx, eax
push ecx
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x30]
add eax, ecx
push eax
mov eax, dword [ebp - 0x1c]
add eax, esi
push eax
push esi
push ecx
push edi
push dword [ebp - 4]
mov ecx, ebx
push dword [ebp - 8]
call fcn.005b7d37
test eax, eax
jne 0x5b9387
mov ecx, dword [ebx + 0xb8]
mov edx, dword [ebp - 8]
mov edi, dword [ebx + 0x53c]
mov eax, ecx
imul eax, dword [ebp - 4]
lea eax, [edx + eax*2]
mov edx, dword [ebx + 0x5b8]
add eax, eax
lea ecx, [eax + ecx*2]
add eax, eax
mov dx, word [eax + edx]
mov word [eax + edi], dx
mov edx, dword [ebx + 0x5b8]
mov dx, word [eax + edx + 2]
mov edi, dword [ebx + 0x53c]
mov word [eax + edi + 2], dx
mov edx, dword [ebx + 0x5b8]
mov edi, dword [ebx + 0x53c]
add ecx, ecx
mov dx, word [ecx + edx]
mov word [ecx + edi], dx
mov edx, dword [ebx + 0x5b8]
mov dx, word [ecx + edx + 2]
mov edi, dword [ebx + 0x53c]
mov word [ecx + edi + 2], dx
mov edx, dword [ebx + 0x5bc]
mov dx, word [eax + edx]
mov edi, dword [ebx + 0x540]
mov word [eax + edi], dx
mov edx, dword [ebx + 0x5bc]
mov dx, word [eax + edx + 2]
mov edi, dword [ebx + 0x540]
add dword [ebp - 0xc], 0x10
mov word [eax + edi + 2], dx
mov eax, dword [ebx + 0x5bc]
mov ax, word [ecx + eax]
mov edx, dword [ebx + 0x540]
mov word [ecx + edx], ax
mov eax, dword [ebx + 0x5bc]
mov ax, word [ecx + eax + 2]
mov edx, dword [ebx + 0x540]
mov word [ecx + edx + 2], ax
mov eax, dword [ebp - 0x10]
and dword [eax], 0xfffffffe
add eax, 0x78
add esi, 4
inc dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0xb8]
mov edi, dword [ebp - 0x10]
jb 0x5b8ccd
mov esi, dword [ebp - 0x20]
mov eax, dword [ebx + 0x1a4]
mov ecx, dword [ebx + 0x19c]
add dword [ebp - 0x14], ecx
add dword [ebp - 0x18], eax
add dword [ebp - 0x34], ecx
add dword [ebp - 0x38], eax
add dword [ebp - 0x3c], eax
add esi, eax
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
xor ecx, ecx
cmp eax, dword [ebx + 0xbc]
mov dword [ebp - 0x20], esi
jb 0x5b8c78
cmp dword [ebx + 0x1930], ecx
jne 0x5b9062
cmp dword [ebx + 0x1934], ecx
je 0x5b9078
push ecx
push dword [ebx + 0xbc]
mov ecx, ebx
push dword [ebx + 0xb8]
call fcn.0059a6a5
xor ecx, ecx
cmp dword [ebx + 0x24c], ecx
je 0x5b9093
cmp dword [ebx + 0x1930], ecx
jne 0x5b9093
push 4
mov ecx, ebx
call fcn.00599b86
xor ecx, ecx
cmp dword [ebx + 0xa50], ecx
je 0x5b9385
cmp dword [ebx + 0x9e0], ecx
jne 0x5b9385
xor esi, esi
inc esi
cmp dword [ebx + 0x1900], ecx
mov dword [ebx + 0x2de4], esi
je 0x5b912a
mov eax, dword [ebx + 0x18c]
push eax
push dword [ebx + 0x184]
push eax
push ecx
push dword [ebx + 0x9c0]
mov ecx, ebx
push dword [ebx + 0x9b4]
call dword [ebx + 0x1924]
mov eax, dword [ebx + 0x190]
push eax
push dword [ebx + 0x188]
mov ecx, ebx
push eax
push 0
push dword [ebx + 0x9c4]
push dword [ebx + 0x9b8]
call dword [ebx + 0x1924]
mov eax, dword [ebx + 0x190]
push eax
push dword [ebx + 0x188]
mov ecx, ebx
push eax
push 0
push dword [ebx + 0x9c8]
push dword [ebx + 0x9bc]
call dword [ebx + 0x1924]
mov dword [ebp - 0x24], esi
mov ecx, ebx
call fcn.0057bf7b
xor edi, edi
cmp dword [ebx + 0x1b50], edi
je 0x5b9244
mov ecx, ebx
call fcn.0057538a
cmp dword [ebp - 0x24], edi
jne 0x5b922d
mov edx, dword [ebx + 0x198]
mov ecx, dword [ebx + 0x9c8]
mov esi, dword [ebx + 0x194]
mov eax, dword [ebx + 0x9c0]
add ecx, edx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebx + 0x9b4]
add eax, esi
add ecx, esi
mov esi, dword [ebx + 0x9b8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x9c4]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + 0x9bc]
add esi, edx
add ecx, edx
add eax, edx
cmp dword [ebx + 0x160], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x34], edi
jle 0x5b922d
jmp 0x5b91b6
push 0xffffffffffffff9c
pop eax
jmp 0x5b9387
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebx + 0x188]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x188]
add dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x3c]
add eax, ecx
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 ecx, dword [ebx + 0x188]
add dword [ebp - 0x3c], ecx
add dword [ebp - 0x18], ecx
mov ecx, dword [ebx + 0x184]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x38]
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 ecx, dword [ebx + 0x184]
add dword [ebp - 0x38], ecx
add dword [ebp - 0x14], ecx
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebx + 0x160]
jl 0x5b91b3
xor edi, edi
push 0xd
mov ecx, ebx
mov dword [ebp - 0x24], 1
call fcn.00599b86
mov ecx, ebx
call fcn.005753cb
cmp dword [ebx + 0xc], edi
je 0x5b9329
push edi
mov ecx, ebx
call fcn.00598042
mov ecx, ebx
call fcn.0059855c
mov eax, dword [ebx + 0x284]
mov esi, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x198]
mov dword [ebp - 0x3c], eax
mov eax, esi
imul eax, eax, 0x58
add eax, ebx
cmp dword [ebp - 0x24], edi
mov dword [ebx + 0x284], esi
mov dword [ebx + 0xc], edi
mov edx, dword [eax + 0x2d4]
mov eax, dword [eax + 0x2d0]
je 0x5b92d7
mov edi, dword [ebx + 0x18b0]
add eax, dword [ebx + 0x9c0]
add edi, ecx
push edi
mov edi, dword [ebx + 0x18ac]
add edi, ecx
mov ecx, dword [ebx + 0x18a8]
add ecx, dword [ebx + 0x194]
push edi
push ecx
mov ecx, dword [ebx + 0x9c8]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x9c4]
add ecx, edx
push ecx
push eax
mov ecx, ebx
call fcn.00598397
mov ecx, ebx
call fcn.00577811
jmp 0x5b9316
mov edi, dword [ebx + 0x9c8]
add eax, dword [ebx + 0x9b4]
add edi, ecx
push edi
mov edi, dword [ebx + 0x9c4]
add edi, ecx
mov ecx, dword [ebx + 0x9c0]
add ecx, dword [ebx + 0x194]
push edi
push ecx
mov ecx, dword [ebx + 0x9bc]
add ecx, edx
push ecx
mov ecx, dword [ebx + 0x9b8]
add ecx, edx
push ecx
push eax
mov ecx, ebx
call fcn.00598397
mov eax, dword [ebp - 0x3c]
mov dword [ebx + 0x284], eax
mov dword [ebx + 0xc], esi
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x24]
mov edi, 0x587010
lea esi, [ebx + 0x2de8]
mov ecx, edi
mov dword [esi], eax
call fcn.00579984
push dword [esi]
mov ecx, ebx
push dword [ebx + 0x9c8]
push dword [ebx + 0x9c4]
push dword [ebx + 0x9c0]
push dword [ebx + 0x9bc]
push dword [ebx + 0x9b8]
push dword [ebx + 0x9b4]
call fcn.00598932
mov ecx, edi
call fcn.005799c1
and dword [ebx + 0x1b78], 0
mov dword [ebx + 0x1b70], 1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret