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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x84
push ebx
push esi
mov esi, ecx
mov edx, dword [esi + 0x1868]
lea eax, [esi + 0x1888]
mov ecx, dword [eax]
mov ecx, dword [esi + ecx*4 + 0x1870]
mov dword [edx], ecx
mov eax, dword [eax]
mov eax, dword [esi + eax*4 + 0x187c]
mov ecx, dword [esi + 0x186c]
mov dword [ecx], eax
mov eax, dword [esi + 0x10e0]
mov ecx, dword [esi + eax*8 + 0x10ec]
mov dword [esi + 0x10e4], ecx
mov eax, dword [esi + eax*8 + 0x10f0]
xor ebx, ebx
cmp dword [esi + 0x1930], ebx
push edi
mov dword [esi + 0x10e8], eax
jne 0x5b17ce
cmp dword [esi + 0x1934], ebx
je 0x5b17dd
push ebx
push ebx
push dword [esi + 0x24c]
mov ecx, esi
call fcn.0059a487
mov eax, dword [esi + 0x480]
xor ecx, ecx
push 3
pop edi
inc ecx
cmp eax, edi
jne 0x5b17f5
mov dword [esi + 0x4a0], ebx
jmp 0x5b17fb
mov dword [esi + 0x4a0], ecx
mov edx, dword [esi + 0x43c]
imul edx, dword [esi + 0x438]
test edx, 0xffffff80
je 0x5b1822
mov dword [esi + 0x444], edi
mov dword [esi + 0x448], 4
jmp 0x5b1832
mov dword [esi + 0x444], 4
mov dword [esi + 0x448], edi
cmp eax, 2
je 0x5b183f
cmp eax, edi
je 0x5b183f
xor eax, eax
jmp 0x5b1841
mov eax, ecx
mov edx, dword [esi + 0x638]
push ecx
mov dword [edx + 0x24], eax
push dword [esi + 0x1a8]
mov ecx, dword [esi + 0x638]
push dword [esi + 0xf58]
call fcn.0058153a
mov eax, dword [esi + 0x1a8]
cmp eax, 5
jge 0x5b188d
lea eax, [esi + 0x1164]
mov dword [esi + 0x1198], eax
lea eax, [esi + 0x119c]
mov dword [esi + 0x1238], eax
lea eax, [esi + 0x123c]
jmp 0x5b18d0
cmp eax, 0xd
jge 0x5b18b2
lea eax, [esi + 0x1130]
mov dword [esi + 0x1198], eax
lea eax, [esi + 0x11d0]
mov dword [esi + 0x1238], eax
lea eax, [esi + 0x1270]
jmp 0x5b18d0
lea eax, [esi + 0x10fc]
mov dword [esi + 0x1198], eax
lea eax, [esi + 0x1204]
mov dword [esi + 0x1238], eax
lea eax, [esi + 0x12a4]
mov dword [esi + 0x12d8], eax
inc dword [0x587074]
mov eax, dword [esi + 0x198]
mov edx, dword [esi + 0x9b8]
add edx, eax
mov dword [ebp + 0x20], edx
mov edx, dword [esi + 0x9bc]
add edx, eax
mov dword [ebp + 0x30], edx
mov edx, dword [esi + 0x18d4]
mov dword [ebp + 4], edx
mov edx, dword [esi + 0x18cc]
add edx, eax
mov dword [ebp - 4], edx
mov edx, dword [esi + 0x18d0]
add edx, eax
mov ecx, dword [esi + 0x194]
add ecx, dword [esi + 0x9b4]
mov dword [ebp + 0x48], edx
mov edx, dword [esi + 0x130]
mov ebx, dword [esi + 0x18bc]
mov dword [ebp - 8], edx
mov edx, dword [esi + 0x14]
add edx, eax
mov dword [ebp], edx
mov edx, dword [esi + 0x18]
add edx, eax
mov eax, dword [esi + 0xf64]
mov dword [ebp + 8], edx
mov edx, dword [esi + 0x604]
mov dword [ebp + 0x10], eax
mov eax, dword [esi + 0xaf4]
mov dword [ebp + 0x4c], edx
mov edx, dword [esi + 0x19d8]
mov dword [ebp + 0x68], eax
mov eax, dword [esi + 0x18b8]
mov dword [ebp + 0x3c], edx
mov edx, dword [esi + 0x19dc]
mov dword [ebp + 0x14], eax
mov eax, dword [esi + 0xb8]
mov dword [ebp + 0x2c], edx
mov edx, dword [esi + 0x19f0]
mov dword [esi + 0xafc], eax
cmp ecx, dword [edx]
mov dword [ebp + 0x54], ecx
jne 0x5b1996
mov dword [ebp + 0x28], edx
jmp 0x5b199f
mov ecx, dword [esi + 0x19f4]
mov dword [ebp + 0x28], ecx
inc eax
xor ecx, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x480]
cmp eax, edi
setne cl
cmp eax, 2
mov dword [esi + 0x4a0], ecx
je 0x5b19c3
cmp eax, edi
je 0x5b19c3
xor eax, eax
jmp 0x5b19c6
xor eax, eax
inc eax
mov ecx, dword [esi + 0x638]
mov dword [ecx + 0x24], eax
mov ecx, dword [esi + 0x638]
push 1
push dword [esi + 0x1a8]
push dword [esi + 0xf58]
call fcn.0058153a
mov ecx, dword [esi + 0xc0]
mov edi, dword [esi + 0x4a4]
imul ecx, ecx, 0xc0
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
cmp dword [esi + 0xbc], eax
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x74], eax
mov dword [ebp + 0x5c], eax
jle 0x5b209b
neg dword [esi + 0xafc]
test byte [ebp + 0x74], 1
jne 0x5b1a45
mov eax, dword [esi + 0x19d8]
mov ebx, dword [esi + 0x18bc]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0x19dc]
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp + 0x20]
mov ecx, 0x80
xor edi, edi
mov dword [esi + 0x17c], ecx
mov dword [esi + 0x178], ecx
mov dword [esi + 0x174], ecx
xor ecx, ecx
cmp dword [ebp + 0x74], edi
mov dword [ebp + 0x58], eax
sete cl
cmp dword [esi + 0xb8], edi
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x70], edi
mov dword [ebp - 0xc], ecx
jle 0x5b205e
mov ecx, dword [ebp + 0x30]
sub ecx, eax
mov dword [ebp + 0x38], ecx
xor edi, edi
cmp dword [esi + 0x1930], edi
jne 0x5b1a9b
cmp dword [esi + 0x1934], edi
je 0x5b1aa2
mov ecx, esi
call fcn.0059a684
mov word [ebx + 2], di
mov word [ebx], di
cmp dword [esi + 0x18e0], 1
mov word [ebp + 0x6c], di
mov word [ebp + 0x6e], di
je 0x5b1ac3
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x54], 3
jne 0x5b1acd
mov eax, dword [ebp + 0x4c]
mov word [eax + 2], di
mov word [eax], di
mov ecx, dword [ebp + 0x68]
and dword [ecx], 0xfffffffd
push dword [ebp + 0x74]
mov edi, dword [esi + 0x4b0]
push dword [ebp + 0x70]
inc dword [ebp + 0xc]
xor eax, eax
stosd dword es:[edi], eax
push ecx
mov ecx, esi
stosd dword es:[edi], eax
call fcn.005b0fc8
mov dword [ebp + 0x64], eax
mov eax, dword [esi + 0x480]
cmp eax, 2
je 0x5b1b01
cmp eax, 3
jne 0x5b1b51
mov ecx, dword [esi + 0x4b0]
shl word [ecx], 1
mov edx, dword [esi + 0x4b0]
mov ecx, dword [edx]
mov eax, ecx
and eax, 0x7ff0000
shl eax, 4
sar eax, 3
mov edi, 0xf000ffff
and ecx, edi
or eax, ecx
mov dword [edx], eax
mov ecx, dword [esi + 0x4b0]
shl word [ecx + 4], 1
mov edx, dword [esi + 0x4b0]
mov ecx, dword [edx + 4]
mov eax, ecx
and eax, 0x7ff0000
shl eax, 4
sar eax, 3
and ecx, edi
or eax, ecx
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x64]
test eax, eax
jne 0x5b21a5
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x68]
mov byte [eax], 0
mov byte [edi + 0x58], 0
mov eax, dword [esi + 0x4b0]
test byte [eax + 3], 0x20
jne 0x5b1f7f
test byte [edi], 2
je 0x5b1b96
mov byte [edi + 0x38], 0
mov byte [edi + 0x39], 0
mov byte [edi + 0x3a], 0
mov byte [edi + 0x3b], 0
mov byte [edi + 0x3c], 0
mov byte [edi + 0x3d], 0
mov eax, dword [edi + 0x64]
mov ecx, eax
shl ecx, 0x1c
sar ecx, 0x1c
cmp ecx, 1
je 0x5b1d58
xor edx, edx
cmp ecx, 2
sete dl
cmp edx, 1
mov dword [ebp + 0x68], edx
jne 0x5b1bc1
and al, 0xf3
or al, 3
mov dword [edi + 0x64], eax
mov eax, dword [edi + 0x64]
and al, 0xf
cmp al, 4
jne 0x5b1bd8
mov eax, dword [esi + 0x5b8]
mov ecx, dword [esi + 0x5bc]
jmp 0x5b1be4
mov eax, dword [esi + 0x5c0]
mov ecx, dword [esi + 0x5c4]
push dword [ebp - 0xc]
lea edx, [ebp + 0x40]
push edx
lea edx, [ebp + 0x44]
push edx
push ecx
push eax
push dword [esi + 0xbc]
mov ecx, esi
push dword [esi + 0xb8]
push 2
push dword [ebp + 0x74]
push dword [ebp + 0x70]
call fcn.005a8aa4
test byte [edi], 1
jne 0x5b1c5c
mov ax, word [esi + 0x5dc]
mov ecx, dword [esi + 0x4b0]
mov cx, word [ecx]
add cx, ax
add ecx, dword [ebp + 0x44]
and cx, word [esi + 0x5e4]
sub ecx, eax
mov word [ebx], cx
mov ax, word [esi + 0x5e0]
mov ecx, dword [esi + 0x4b0]
mov ecx, dword [ecx]
shl ecx, 4
sar ecx, 0x14
add ecx, eax
add ecx, dword [ebp + 0x40]
and cx, word [esi + 0x5e8]
sub ecx, eax
mov word [ebx + 2], cx
jmp 0x5b1c6b
mov ax, word [ebp + 0x44]
mov word [ebx], ax
mov ax, word [ebp + 0x40]
mov word [ebx + 2], ax
cmp dword [ebp + 0x68], 1
jne 0x5b1d58
mov eax, dword [edi + 0x64]
push dword [ebp - 0xc]
and al, 0xf4
or al, 4
mov ecx, esi
mov dword [edi + 0x64], eax
mov ax, word [ebx]
and word [ebx], 0
mov word [ebp + 0x68], ax
mov ax, word [ebx + 2]
and word [ebx + 2], 0
mov word [ebp + 0x64], ax
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x44]
push eax
push dword [esi + 0x5bc]
push dword [esi + 0x5b8]
push dword [esi + 0xbc]
push dword [esi + 0xb8]
push 2
push dword [ebp + 0x74]
push dword [ebp + 0x70]
call fcn.005a8aa4
test byte [edi], 1
jne 0x5b1d21
mov eax, dword [esi + 0x4b0]
test byte [eax + 3], 0x10
je 0x5b1d21
mov ax, word [eax + 4]
mov cx, word [esi + 0x5dc]
add ax, cx
add eax, dword [ebp + 0x44]
and ax, word [esi + 0x5e4]
sub eax, ecx
mov word [ebx], ax
mov ax, word [esi + 0x5e0]
mov ecx, dword [esi + 0x4b0]
mov ecx, dword [ecx + 4]
shl ecx, 4
sar ecx, 0x14
add ecx, eax
add ecx, dword [ebp + 0x40]
and cx, word [esi + 0x5e8]
sub ecx, eax
mov word [ebx + 2], cx
jmp 0x5b1d30
mov ax, word [ebp + 0x44]
mov word [ebx], ax
mov ax, word [ebp + 0x40]
mov word [ebx + 2], ax
mov ax, word [ebx]
mov word [ebp + 0x6c], ax
mov ax, word [ebx + 2]
mov word [ebp + 0x6e], ax
mov ax, word [ebp + 0x68]
mov word [ebx], ax
mov ax, word [ebp + 0x64]
mov word [ebx + 2], ax
mov eax, dword [edi + 0x64]
and al, 0xf2
or al, 2
mov dword [edi + 0x64], eax
lea eax, [ebp + 0x24]
push eax
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x34]
push eax
push dword [ebp + 0x74]
xor eax, eax
cmp dword [esi + 0x480], 3
push dword [ebp + 0x70]
sete al
push eax
mov eax, dword [ebp + 0x4c]
movsx ecx, word [eax + 2]
movsx eax, word [eax]
push ecx
push eax
mov ecx, esi
call fcn.005ae4e5
cmp dword [esi + 0x1930], 0
jne 0x5b1da4
cmp dword [esi + 0x1934], 0
je 0x5b1e27
mov eax, dword [edi + 0x64]
shl eax, 0x1c
sar eax, 0x1c
dec eax
je 0x5b1e02
dec eax
je 0x5b1ddb
dec eax
je 0x5b1dd2
dec eax
jne 0x5b1e27
mov ecx, esi
call fcn.0059a30b
movsx eax, word [ebx + 2]
push eax
movsx eax, word [ebx]
push eax
mov ecx, esi
call fcn.0059a3a0
jmp 0x5b1e27
mov ecx, esi
call fcn.0059a323
jmp 0x5b1dc0
mov ecx, esi
call fcn.0059a33b
movsx eax, word [ebp + 0x6e]
push 0
push eax
movsx eax, word [ebp + 0x6c]
push eax
mov ecx, esi
call fcn.0059a3dc
movsx eax, word [ebx + 2]
push 2
push eax
movsx eax, word [ebx]
push eax
jmp 0x5b1e20
mov ecx, esi
call fcn.0059a33b
push 0
push dword [ebp + 0x18]
mov ecx, esi
push dword [ebp + 0x34]
call fcn.0059a3dc
push 2
push dword [ebp + 0x24]
push dword [ebp + 0x1c]
mov ecx, esi
call fcn.0059a3dc
mov eax, dword [edi + 0x64]
mov edx, dword [ebp + 0x38]
shl eax, 0x1c
sar eax, 0x1c
cmp eax, 1
jne 0x5b1e89
mov eax, dword [ebp + 0x4c]
movsx ecx, word [eax + 2]
movsx eax, word [eax]
push 0
push 0
push ecx
mov ecx, dword [ebp + 0x50]
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
add edx, eax
push edx
push eax
mov eax, dword [ebp + 0x54]
add ecx, eax
push ecx
push edi
push dword [ebp + 0x74]
mov ecx, esi
push dword [ebp + 0x70]
call fcn.005b03c5
mov dx, word [ebp + 0x34]
mov ecx, dword [esi + 0x5b8]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x60]
add eax, eax
mov word [eax + ecx], dx
mov dx, word [ebp + 0x18]
jmp 0x5b1f29
mov ecx, dword [ebp + 0x50]
cmp eax, 2
movsx eax, word [ebx + 2]
jne 0x5b1edf
push eax
movsx eax, word [ebx]
push eax
movsx eax, word [ebp + 0x6e]
push eax
movsx eax, word [ebp + 0x6c]
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
add edx, eax
push edx
push eax
mov eax, dword [ebp + 0x54]
add ecx, eax
push ecx
push edi
push dword [ebp + 0x74]
mov ecx, esi
push dword [ebp + 0x70]
call fcn.005b03c5
mov dx, word [ebp + 0x6c]
mov ecx, dword [esi + 0x5b8]
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x60]
add eax, eax
mov word [eax + ecx], dx
mov dx, word [ebp + 0x6e]
jmp 0x5b1f55
push 0
push 0
push eax
movsx eax, word [ebx]
push eax
push dword [ebp + 0x5c]
mov eax, dword [ebp + 0x58]
push ecx
add edx, eax
push edx
push eax
mov eax, dword [ebp + 0x54]
add ecx, eax
push ecx
push edi
push dword [ebp + 0x74]
mov ecx, esi
push dword [ebp + 0x70]
call fcn.005b03c5
mov ecx, dword [esi + 0x5b8]
mov dword [ebp + 0x64], eax
mov eax, dword [edi + 0x64]
and al, 0xf
cmp al, 4
mov eax, dword [ebp + 0x60]
jne 0x5b1f47
mov dx, word [ebx]
add eax, eax
mov word [eax + ecx], dx
mov dx, word [ebx + 2]
mov ecx, dword [esi + 0x5bc]
mov word [eax + ecx], dx
mov dx, word [ebp + 0x1c]
mov ecx, dword [esi + 0x5c0]
mov word [eax + ecx], dx
mov dx, word [ebp + 0x24]
jmp 0x5b1f70
mov dx, word [ebp + 0x34]
add eax, eax
mov word [eax + ecx], dx
mov dx, word [ebp + 0x18]
mov ecx, dword [esi + 0x5bc]
mov word [eax + ecx], dx
mov dx, word [ebx]
mov ecx, dword [esi + 0x5c0]
mov word [eax + ecx], dx
mov dx, word [ebx + 2]
mov ecx, dword [esi + 0x5c4]
mov word [eax + ecx], dx
mov eax, dword [ebp + 0x64]
jmp 0x5b1ffa
cmp dword [esi + 0x1930], 0
jne 0x5b1f91
cmp dword [esi + 0x1934], 0
je 0x5b1f98
mov ecx, esi
call fcn.0059a2ec
mov ecx, dword [esi + 0x5c4]
mov eax, dword [ebp + 0x60]
mov edx, dword [ebp + 0x38]
add eax, eax
mov word [eax + ecx], 0x4000
mov ecx, dword [esi + 0x5c0]
mov word [eax + ecx], 0x4000
mov ecx, dword [esi + 0x5bc]
mov word [eax + ecx], 0x4000
mov ecx, dword [esi + 0x5b8]
mov word [eax + ecx], 0x4000
mov ecx, dword [ebp + 0x5c]
mov eax, dword [ebp + 0x50]
push ecx
push eax
add ecx, ecx
push ecx
lea ecx, [eax + eax]
push ecx
push dword [ebp + 0x74]
mov ecx, dword [ebp + 0x58]
push dword [ebp + 0x70]
add edx, ecx
push edx
push ecx
mov ecx, dword [ebp + 0x54]
add eax, ecx
push eax
push edi
mov ecx, esi
call fcn.0059f774
test eax, eax
jne 0x5b21a5
mov eax, dword [ebp + 0x3c]
xor ecx, ecx
cmp dword [edi + 0x54], ecx
jne 0x5b201a
mov dword [eax + 0x140], ecx
mov dword [eax + 0x100], ecx
mov dword [eax], ecx
inc dword [ebp + 0x10]
add dword [ebp + 0x14], 0x78
add dword [ebp + 0x4c], 8
add dword [ebp + 0x58], 8
add dword [ebp + 0x2c], 0x90
add dword [ebp + 0x28], 0x24
add dword [ebp + 0x50], 0x10
add eax, 0x180
add edi, 0x78
add ebx, 4
inc dword [ebp + 0x70]
inc dword [ebp + 0x60]
mov dword [ebp + 0x3c], eax
mov eax, dword [ebp + 0x70]
cmp eax, dword [esi + 0xb8]
mov dword [ebp + 0x68], edi
jl 0x5b1a89
mov eax, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x19c]
add dword [ebp + 0x20], eax
add dword [ebp + 0x30], eax
add dword [ebp], eax
add dword [ebp + 8], eax
add dword [ebp - 4], eax
add dword [ebp + 0x48], eax
add dword [ebp + 0x54], ecx
add dword [ebp - 8], ecx
add dword [ebp + 4], ecx
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
add dword [ebp + 0x5c], 0x10
cmp eax, dword [esi + 0xbc]
jl 0x5b1a21
xor ebx, ebx
cmp dword [esi + 0x1930], ebx
jne 0x5b20ad
cmp dword [esi + 0x1934], ebx
je 0x5b20c1
push ebx
push dword [esi + 0xbc]
mov ecx, esi
push dword [esi + 0xb8]
call fcn.0059a6a5
cmp dword [esi + 0x24c], ebx
mov dword [ebp + 0x48], ebx
je 0x5b20f3
cmp dword [esi + 0x458], ebx
mov ecx, esi
je 0x5b20ec
call fcn.0059dd42
cmp dword [esi + 0x1930], ebx
jne 0x5b20f3
mov ecx, esi
call fcn.0059ddd6
jmp 0x5b20f3
push 4
call fcn.00599b86
cmp dword [esi + 0xa50], ebx
je 0x5b21a3
cmp dword [esi + 0x9e0], ebx
jne 0x5b21a3
xor edi, edi
inc edi
mov ecx, esi
mov dword [esi + 0x2de4], edi
call fcn.0057bf7b
cmp dword [esi + 0x1b50], ebx
je 0x5b2144
mov ecx, esi
call fcn.0057538a
mov ecx, esi
call fcn.005bf281
push 0xd
mov ecx, esi
call fcn.00599b86
mov ecx, esi
mov dword [ebp + 0x48], edi
call fcn.005753cb
mov eax, dword [ebp + 0x48]
lea ebx, [esi + 0x2de8]
mov ecx, 0x587010
mov dword [ebx], eax
call fcn.00579984
push dword [ebx]
mov ecx, esi
push dword [esi + 0x9c8]
push dword [esi + 0x9c4]
push dword [esi + 0x9c0]
push dword [esi + 0x9bc]
push dword [esi + 0x9b8]
push dword [esi + 0x9b4]
call fcn.00598932
mov ecx, 0x587010
call fcn.005799c1
and dword [esi + 0x1b78], 0
mov dword [esi + 0x1b70], edi
mov dword [esi + 0x4a0], edi
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret