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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff14
cmp dword [0x4d5a68], 0
je 0x5b6943
cmp dword [0x4d5a68], 6
je 0x5b6943
cmp dword [0x4d5a70], 0
jne 0x5b694b
or eax, 0xffffffff
jmp 0x5b715d
cmp dword [0x4d5a14], 0
jne 0x5b695c
or eax, 0xffffffff
jmp 0x5b715d
mov edx, dword [0x4d7900]
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0
jne 0x5b6975
or eax, 0xffffffff
jmp 0x5b715d
xor edx, edx
xor ecx, ecx
mov dword [0x4d7c7c], edx
mov dword [esp + 4], ecx
cmp dword [0x4d5a24], 0
je 0x5b6b90
cmp dword [0x4d5a28], 0
je 0x5b6b90
cmp dword [0x4d5a2c], 0
je 0x5b6b90
cmp dword [0x4d5a30], 0
je 0x5b6b90
cmp dword [0x4d5a34], 0
je 0x5b6b90
cmp dword [0x4d7b4d], 0
je 0x5b6b90
mov eax, dword [0x4d7b4d]
xor ebp, ebp
jmp 0x5b69e2
and dword [eax + 8], 0xfffffffd
inc ebp
add eax, 0x10
cmp ebp, dword [0x4d7b35]
jl 0x5b69da
mov eax, dword [0x4d5a70]
push eax
push 1
call dword [0x4d5a24]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0xffffffff
je 0x5b6b90
mov dword [esp + 0xb8], 0x10
lea edx, [esp + 0xb8]
push edx
mov ecx, dword [esp + 0x28]
push ecx
call dword [0x4d5a28]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
je 0x5b6b77
mov dword [esp + 0xc8], 0x24
mov eax, dword [esp + 0xc0]
push eax
mov edx, dword [0x4d5a70]
push edx
lea ecx, [esp + 0xd0]
push ecx
call dword [0x4d5a30]
test eax, eax
je 0x5b6b55
test byte [esp + 0xd8], 2
jne 0x5b6b3f
cmp dword [esp + 0xd4], 0
je 0x5b6b3f
mov eax, dword [esp + 0xd0]
mov edx, eax
add edx, dword [esp + 0xd4]
push edx
push eax
push 0x4d7a31
call fcn.005ab572
add esp, 0xc
test eax, eax
je 0x5b6ac6
mov ecx, dword [eax]
cmp ecx, dword [esp + 0xd0]
jne 0x5b6ac6
mov edx, dword [eax + 4]
cmp edx, dword [esp + 0xd4]
jne 0x5b6ac6
mov ecx, dword [eax + 0xc]
cmp ecx, dword [esp + 0xc0]
je 0x5b6b1f
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x74], eax
test byte [esp + 0xc4], 1
je 0x5b6af0
mov dword [esp + 0x78], 0x20003
jmp 0x5b6af8
mov dword [esp + 0x78], 0x40003
mov edx, dword [esp + 0xc0]
lea ecx, [esp + 0x70]
mov dword [esp + 0x7c], edx
push ecx
push 0x4d7a31
call fcn.005aaf06
add esp, 8
mov dword [esp + 4], 1
jmp 0x5b6b3f
test byte [eax + 8], 1
je 0x5b6b3b
mov edx, dword [eax + 8]
and edx, 0xfffffffe
or edx, 2
mov dword [eax + 8], edx
mov dword [esp + 4], 1
jmp 0x5b6b3f
or dword [eax + 8], 2
lea eax, [esp + 0xc8]
push eax
call dword [0x4d5a34]
test eax, eax
jne 0x5b6a64
lea ecx, [esp + 0xb8]
push ecx
mov eax, dword [esp + 0x28]
push eax
call dword [0x4d5a2c]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0
jne 0x5b6a34
mov edx, dword [esp + 0x24]
push edx
call fcn.00604fc2
push 0x4d7a31
call fcn.005ab41e
pop ecx
add dword [esp + 4], eax
mov esi, dword [0x4d7db0]
test esi, esi
je 0x5b6bec
xor ebp, ebp
jmp 0x5b6be4
xor eax, eax
xor edx, edx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
cmp dword [esi + 0x10], 0
je 0x5b6bdd
push 3
push 8
mov ecx, dword [esi + 0x10]
add ecx, 4
push ecx
lea eax, [esp + 0x24]
push eax
call fcn.005b7316
add esp, 0x10
mov dword [esp], eax
cmp dword [esp], 8
jne 0x5b6bdd
mov edx, dword [esp + 0x18]
mov dword [esi + 0x18], edx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x1c], ecx
inc ebp
add esi, 0x66c
cmp ebp, dword [0x4d7d98]
jl 0x5b6b9e
xor ebp, ebp
jmp 0x5b6bfe
mov eax, dword [esp + 0x20]
inc ebp
and dword [eax + 8], 0xfffffffd
add dword [esp + 0x20], 0x48
cmp ebp, dword [0x4d78e8]
jl 0x5b6bf0
xor edx, edx
xor ecx, ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x8c], ecx
push 0x1c
lea eax, [esp + 0xa0]
push eax
mov ecx, dword [0x4d5a68]
mov edx, dword [esp + 0x14]
push edx
push ecx
call dword [0x4d5a14]
test eax, eax
jne 0x5b6c3e
xor eax, eax
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 0xa8]
add dword [esp + 0xc], edx
and dword [esp + 0xa4], 0xfffffcff
cmp dword [esp + 0xac], 0x2000
jne 0x5b6c6e
mov dword [esp + 0xa4], 1
jmp 0x5b6c9d
cmp dword [esp + 0xa4], 8
jne 0x5b6c85
mov dword [esp + 0xa4], 4
jmp 0x5b6c9d
cmp dword [esp + 0xa4], 0x80
jne 0x5b6c9d
mov dword [esp + 0xa4], 0x40
cmp dword [esp + 0xa8], 0
je 0x5b70da
cmp dword [esp + 0x8c], 0
jne 0x5b6ccf
lea esi, [esp + 0x9c]
lea edi, [esp + 0x80]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
jmp 0x5b6c15
mov eax, dword [esp + 0x84]
cmp eax, dword [esp + 0xa0]
jne 0x5b70da
mov edx, dword [esp + 0x88]
cmp edx, dword [esp + 0xa4]
jne 0x5b70da
mov ecx, dword [esp + 0x90]
cmp ecx, dword [esp + 0xac]
jne 0x5b70da
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0xb4]
jne 0x5b70da
mov edx, dword [esp + 0xa8]
add dword [esp + 0x8c], edx
jmp 0x5b6c15
cmp dword [esp + 0x90], 0x1000
jne 0x5b70e9
mov ebx, dword [esp + 0x80]
mov edi, eax
add edi, ebx
xor eax, eax
mov dword [esp + 0x40], eax
mov byte [esp + 0x44], 0
mov dword [esp + 0x30], 2
push edi
push ebx
push 0x4d70fc
call fcn.005ab572
add esp, 0xc
mov esi, eax
test esi, esi
je 0x5b6ea3
cmp dword [esi + 0x154], 0
jle 0x5b6ea3
cmp dword [esi + 0x158], 0
je 0x5b6ea3
xor ebp, ebp
mov edx, dword [esi + 0x158]
jmp 0x5b6e97
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
add eax, dword [esi]
add ecx, 0xfff
and ecx, 0xfffff000
cmp ebx, eax
mov dword [esp + 0x10], ecx
jae 0x5b6dc8
cmp edi, eax
jbe 0x5b6dc8
mov edi, eax
jmp 0x5b6e93
cmp ebx, eax
jb 0x5b6e93
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp ebx, ecx
jae 0x5b6e93
mov ecx, dword [esp + 0x10]
add ecx, eax
cmp edi, ecx
jbe 0x5b6dea
mov edi, ecx
push 8
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.005f990e
add esp, 0xc
mov eax, dword [esi + 0x3ed]
cmp ebx, eax
jb 0x5b6e16
add eax, dword [esi + 0x3f1]
cmp ebx, eax
jae 0x5b6e16
or dword [esp + 0x30], 0x80000
mov eax, dword [esi + 0xc]
cmp ebx, eax
jb 0x5b6e2f
add eax, dword [esi + 0x3e9]
cmp ebx, eax
jae 0x5b6e2f
or dword [esp + 0x30], 0x100000
cmp ebx, dword [esi + 0x2c]
jne 0x5b6e3c
or dword [esp + 0x30], 0x200000
mov eax, dword [esi + 0x34]
cmp ebx, eax
ja 0x5b6e4f
cmp edi, eax
jbe 0x5b6e4f
or dword [esp + 0x30], 0x400000
mov eax, dword [esi + 0x38]
cmp edi, eax
jbe 0x5b6e65
add eax, dword [esi + 0x3c]
cmp ebx, eax
jae 0x5b6e65
or dword [esp + 0x30], 0x800000
mov eax, dword [esi + 0x14]
cmp edi, eax
jbe 0x5b6e7b
add eax, dword [esi + 0x18]
cmp ebx, eax
jae 0x5b6e7b
or dword [esp + 0x30], 0x1000000
mov eax, dword [esi + 0x40]
cmp edi, eax
jbe 0x5b6ea3
add eax, dword [esi + 0x44]
cmp ebx, eax
jae 0x5b6ea3
or dword [esp + 0x30], 0x2000000
jmp 0x5b6ea3
inc ebp
add edx, 0x28
cmp ebp, dword [esi + 0x154]
jl 0x5b6da1
test esi, esi
je 0x5b6f13
cmp ebx, dword [esi]
jne 0x5b6f13
lea edx, [ebx + 0x40]
cmp edi, edx
jb 0x5b6f13
push 3
push 4
lea ecx, [ebx + 0x3c]
push ecx
lea eax, [esp + 0x20]
push eax
call fcn.005b7316
add esp, 0x10
cmp eax, 4
jne 0x5b6f13
mov edx, edi
sub edx, ebx
cmp edx, dword [esp + 0x14]
jbe 0x5b6f13
push 3
push 4
mov ecx, dword [esp + 0x1c]
add ecx, ebx
push ecx
lea eax, [esp + 0x20]
push eax
call fcn.005b7316
add esp, 0x10
cmp eax, 4
jne 0x5b6f13
push 4
push 0x4bc444
lea edx, [esp + 0x1c]
push edx
call fcn.005f97de
add esp, 0xc
test eax, eax
jne 0x5b6f13
or dword [esp + 0x30], 0x10000000
mov esi, dword [0x4d7db0]
test esi, esi
je 0x5b6f86
xor ebp, ebp
jmp 0x5b6f7e
mov eax, dword [esi + 0x10]
cmp ebx, eax
jae 0x5b6f30
cmp edi, eax
jbe 0x5b6f30
mov edi, eax
jmp 0x5b6f4c
cmp ebx, eax
jne 0x5b6f4c
mov eax, dword [esp + 0x30]
and eax, 0xe001ffff
or eax, 0x8000000
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov dword [esp + 0x40], edx
mov eax, dword [esi + 0x1c]
cmp ebx, eax
jae 0x5b6f5b
cmp edi, eax
jbe 0x5b6f5b
mov edi, eax
jmp 0x5b6f77
cmp ebx, eax
jne 0x5b6f77
mov eax, dword [esp + 0x30]
and eax, 0xe001ffff
or eax, 0x4000000
mov dword [esp + 0x30], eax
mov edx, dword [esi]
mov dword [esp + 0x40], edx
inc ebp
add esi, 0x66c
cmp ebp, dword [0x4d7d98]
jl 0x5b6f21
push edi
push ebx
push 0x4d7a31
call fcn.005ab572
add esp, 0xc
test eax, eax
je 0x5b6fa6
mov ecx, dword [eax + 8]
and ecx, 0x60000
or dword [esp + 0x30], ecx
mov eax, edi
mov dword [esp + 0x28], ebx
sub eax, ebx
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x84]
mov dword [esp + 0x34], edx
xor edx, edx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x38], ecx
mov ecx, edi
mov eax, dword [esp + 0x90]
or eax, dword [esp + 0x94]
or eax, dword [esp + 0x98]
dec ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x4c], edx
push edi
push ecx
push 0x4d77e4
call fcn.005ab572
add esp, 0xc
mov dword [esp + 0x20], eax
cmp dword [esp + 0x20], 0
je 0x5b7037
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
cmp edx, dword [esp + 0x28]
jne 0x5b7037
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
cmp eax, dword [esp + 0x2c]
jne 0x5b7037
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0xc]
cmp ecx, dword [esp + 0x34]
jne 0x5b7037
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x10]
cmp edx, dword [esp + 0x38]
je 0x5b703d
xor ecx, ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x20], 0
je 0x5b708b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 8]
and edx, 0x20000000
or edx, dword [esp + 0x30]
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov dword [eax + 0x18], edx
push 8
lea ecx, [esp + 0x48]
push ecx
mov eax, dword [esp + 0x28]
add eax, 0x1c
push eax
call fcn.005f953a
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0x14], ecx
jmp 0x5b70c8
push edi
push ebx
push 0x4d77e4
call fcn.005ab312
add esp, 0xc
or dword [esp + 0x30], 1
lea eax, [esp + 0x28]
push eax
push 0x4d77e4
call fcn.005aaf06
add esp, 8
push edi
push ebx
push 0x475
call fcn.005b047e
add esp, 0xc
mov dword [esp + 4], 1
mov dword [esp + 0x80], edi
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x8c], edx
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x5b6d32
cmp dword [esp + 0xa8], 0
je 0x5b710d
lea esi, [esp + 0x9c]
lea edi, [esp + 0x80]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
jmp 0x5b6c15
push 0x4d77e4
call fcn.005ab41e
pop ecx
add dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x5b713b
cmp dword [0x4d77e0], 0
je 0x5b713b
push 0
push 0
mov eax, dword [0x4d77e0]
push eax
call fcn.006054d8
cmp dword [esp + 4], 0
je 0x5b715b
cmp dword [0x4d7a2d], 0
je 0x5b715b
push 0
push 0
mov edx, dword [0x4d7a2d]
push edx
call fcn.006054d8
xor eax, eax
add esp, 0xec
pop ebp
pop edi
pop esi
pop ebx
ret