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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
and eax, 1
mov ebx, ecx
xor edx, edx
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xc8]
push esi
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x34], eax
mov dword [ebx + 0xc8], edx
cmp dword [ebx + 0xb8], edx
jne 0x68087a
mov ecx, dword [ebx + 0x80]
cmp ecx, edx
je 0x5f4b3f
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
push eax
push 0x4d
mov eax, ebx
call fcn.005c077a
mov esi, eax
mov dword [esp + 0x18], esi
cmp dword [esp + 0x10], 0
mov dword [esi + 0x44], 0
lea edi, [esi + 0x18]
jne 0x5c1ebc
and dword [edi + 0x2c], 0xfffffffb
mov dword [esi + 0x48], 0
mov dword [esi + 0x28], 0
mov ecx, dword [ebx + 0x98]
inc dword [ecx]
mov ecx, dword [ebx + 0x98]
lea eax, [esi + 0x48]
mov dword [esi + 0x3c], 0
mov edx, dword [ebx + 0x88]
mov dword [esp + 0x30], ecx
lea ecx, [esi + 0x3c]
mov dword [ebx + 0x98], ecx
mov ecx, dword [ebx + 0x80]
mov dword [esp + 0x2c], edx
mov edx, dword [ecx + 0x24]
sub edx, dword [ecx + 0x18]
mov dword [esi + 0x4c], edx
mov dword [ebx + 0x88], eax
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
xor ecx, ecx
cmp dword [esp + 0x10], ecx
jne 0x5c179a
mov eax, dword [ebx + 0x90]
cmp eax, ecx
jne 0x5f4b54
mov edx, dword [ebx + 0x8c]
mov dword [edx], esi
mov dword [ebx + 0x8c], edi
mov dword [edi], ecx
cmp dword [ebx + 0x84], ecx
jne 0x6174d0
and dword [edi + 0x2c], 0xfffffffd
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x84], esi
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], ecx
cmp dword [ebx + 0x78], 0x4b
mov dword [esp + 0x20], eax
je 0x5c1ec5
cmp dword [esp + 0x10], ecx
jne 0x5f4f69
cmp dword [ebx + 0x78], 0x79
jne 0x5f4f56
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
mov ecx, dword [ebx + 0x94]
lea eax, [esi + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x94], eax
mov eax, dword [ebx + 0x78]
mov dword [esp + 0x28], ecx
cmp eax, 0x4d
je 0x5c3751
test byte [ebp + 8], 2
jne 0x5f4f9f
cmp eax, 0x4b
jne 0x5f4fc1
mov ecx, dword [ebx + 0x80]
mov edi, dword [ebx + 0x70]
test ecx, ecx
je 0x68088c
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
push eax
push 0x4b
mov eax, ebx
call fcn.005c077a
mov dword [eax + 0x20], edi
mov dword [eax + 0x28], 0
mov edx, dword [ebx + 0x94]
mov edx, dword [edx]
lea ecx, [eax + 0x18]
mov dword [ecx], edx
mov edx, dword [ebx + 0x94]
mov dword [edx], eax
test edi, edi
je 0x5c1882
mov dword [ebx + 0x94], ecx
mov eax, dword [ebx + 0x70]
cmp eax, dword [ebx + 0xa4]
je 0x5f4fb2
mov ecx, dword [ebx + 0x80]
push ecx
call fcn.005bd379
cmp dword [ebx + 0x78], 0x51
je 0x5ebf83
cmp dword [ebx + 0x78], 0x4d
jne 0x5f4fd4
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x374]
cmp dword [ecx + 0x584], 0
jne 0x6585e6
mov eax, dword [ebx + 0x64]
mov ecx, eax
and ecx, 0x2000
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], ecx
jne 0x5c18ed
cmp dword [ebx + 0x90], 0
jne 0x680893
test byte [ebp + 8], 8
jne 0x680893
test dword [ebx + 0x64], 0x2000
jne 0x5f4a60
mov ecx, dword [esp + 0x1c]
push ecx
push esi
mov eax, ebx
call fcn.005c1990
mov edx, dword [ebx + 0x94]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [edx], 0
cmp dword [ebx + 0xb8], 0
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0x94], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x84], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebx + 0x88], edx
mov dword [ebx + 0x98], eax
mov dword [ebx + 0xc8], ecx
jne 0x6808a0
cmp dword [esp + 0x10], 0
jne 0x5c1970
cmp dword [ebx + 0x90], 0
jne 0x5f5050
cmp dword [ebx + 0x138], 0
jne 0x5c1980
mov eax, dword [esp + 0x14]
or dword [ebx + 0x64], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
or dword [edi + 0x2c], 4
jmp 0x5c1726
test byte [ebp + 8], 8
jne 0x5c17dd
mov ecx, dword [ebx + 0x80]
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
mov ecx, dword [ebx + 0x6c]
cmp dword [ecx + 0x480], 3
mov dword [esp + 0x28], eax
jge 0x62aa7f
mov ecx, dword [ebx + 0x80]
mov edi, dword [ebx + 0x70]
test ecx, ecx
je 0x680885
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
push eax
push 1
mov eax, ebx
call fcn.005c077a
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
cmp dword [ebx + 0x78], 0x7b
je 0x5f4c3b
cmp dword [ebx + 0x78], 0x7c
je 0x5f4dbc
mov edi, dword [esp + 0x14]
cmp dword [esp + 0x1c], 0
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x24], ecx
jne 0x5f4ead
lea eax, [esi + 0x1c]
mov dword [eax], edi
mov dword [esp + 0x1c], eax
cmp dword [ebx + 0x78], 0x51
je 0x5f4ebe
mov eax, dword [esp + 0x24]
mov edx, dword [esi + 0x1c]
mov ecx, dword [esp + 0x28]
mov dword [edx + 8], ecx
mov edx, dword [esi + 0x1c]
mov dword [edx + 0xc], eax
mov edx, dword [esi + 0x1c]
cmp dword [edx], 1
jne 0x5f4f0d
mov eax, dword [edx + 0x18]
mov dword [esi + 0x20], eax
cmp eax, dword [ebx + 0xa4]
jne 0x5c17e7
jmp 0x5f4f2a
test byte [ebp + 8], 4
je 0x5c18b1
jmp 0x5f4f8c
test byte [ebp + 8], 4
jne 0x5c18a7
mov edx, dword [ebx + 0x80]
push edx
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
je 0x5c1835
jmp 0x5f4fc1
xor eax, eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x3c], eax
mov ecx, dword [ebx + 0x80]
mov dword [ebx + 0x134], 1
mov eax, dword [ecx + 0x50]
mov edi, eax
or eax, 0x40
mov dword [ecx + 0x50], eax
mov edx, dword [ebx + 0x80]
shl edi, 0x19
push edx
sar edi, 0x1f
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4f
jne 0x5f4fe7
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
nop
mov eax, dword [ebx + 0x78]
add eax, 0xfffffffa
cmp eax, 0x79
ja 0x5f4ac8
movzx ecx, byte [eax + 0x100460c0]
jmp dword [ecx*4 + 0x100460b8]
mov ecx, ebx
call fcn.005f4929
jmp 0x5f4aaf
push edx
push 0x4d
mov eax, ebx
call fcn.005c077a
mov esi, eax
mov dword [esp + 0x18], eax
jmp 0x5c170d
mov dword [eax], esi
mov dword [ebx + 0x90], edi
jmp 0x5c17a8
cmp dword [esp + 0x10], 0
je 0x62aaad
cmp eax, 0x7b
jne 0x5f4bd6
mov ecx, dword [ebx + 0x80]
push ecx
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
jne 0x5f4c01
mov ecx, dword [ebx + 0x80]
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x5f4ba0
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
push eax
jmp 0x5f4ba2
push 0
push 1
mov eax, ebx
call fcn.005c077a
mov ecx, dword [esp + 0x1c]
push eax
push 0x2c
push ebx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], 0
call fcn.005c39a2
mov edx, dword [ebx + 0x80]
push edx
mov edi, eax
call fcn.005bd379
cmp dword [ebx + 0x78], 0x7b
je 0x5f4b71
cmp dword [ebx + 0x78], 0x7c
je 0x5f4bef
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03ea
call dword [0x10001094]
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
je 0x5f4c14
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f2
call dword [0x10001094]
mov ecx, dword [ebx + 0x70]
push ecx
mov eax, ebx
call fcn.005bc698
push eax
push 0x46
push ebx
call fcn.005c39a2
mov edx, dword [ebx + 0x80]
push edx
mov edi, eax
call fcn.005bd379
jmp 0x62aaad
mov ecx, dword [ebx + 0x80]
push ecx
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
jne 0x5f4c01
mov eax, dword [ebx + 0x80]
mov edx, dword [ebx + 0x70]
mov dword [esp + 0x24], edx
lea esi, [ebx + 4]
push 0x28
test eax, eax
je 0x5f4cbd
mov edi, dword [eax + 0x24]
sub edi, dword [eax + 0x30]
sub edi, dword [eax + 0x18]
call fcn.005be8c2
test eax, eax
je 0x5f4ee7
mov ecx, dword [ebx + 0x88]
add dword [ecx], 0x28
mov ecx, 0xffff
mov word [eax + 0x10], cx
mov cl, byte [eax + 0x12]
and cl, 0xfd
or cl, 1
xor edx, edx
mov dword [eax], 1
mov dword [eax + 4], edx
mov byte [eax + 0x12], cl
mov dword [eax + 8], edi
mov ecx, dword [ebx + 0x80]
cmp ecx, edx
je 0x5f4cb8
mov edx, dword [ecx + 0x28]
sub edx, dword [ecx + 0x18]
sub edx, dword [ecx + 4]
mov dword [eax + 0xc], edx
jmp 0x5f4d11
call fcn.005be8c2
xor edi, edi
cmp eax, edi
je 0x5f4ee7
mov ecx, dword [ebx + 0x88]
add dword [ecx], 0x28
mov dl, byte [eax + 0x12]
and dl, 0xfd
mov ecx, 0xffff
or dl, 1
mov dword [eax], 1
mov dword [eax + 4], edi
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
mov dword [eax + 8], edi
mov ecx, dword [ebx + 0x80]
cmp ecx, edi
je 0x5f4d0e
mov edx, dword [ecx + 0x28]
sub edx, dword [ecx + 0x18]
sub edx, dword [ecx + 4]
mov dword [eax + 0xc], edx
jmp 0x5f4d11
mov dword [eax + 0xc], edi
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x24
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0
call fcn.005be8c2
test eax, eax
je 0x5f4efa
mov ecx, dword [ebx + 0x88]
add dword [ecx], 0x24
mov dl, byte [eax + 0x12]
mov ecx, 0xffff
xor esi, esi
and dl, 0xfd
mov word [eax + 0x10], cx
mov ecx, dword [esp + 0x14]
or dl, 1
mov dword [eax], 0x2c
mov dword [eax + 4], esi
mov byte [eax + 0x12], dl
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], edi
cmp ecx, esi
jne 0x5f4d8d
mov ecx, dword [ebx + 0x80]
mov edx, dword [ecx + 0x24]
sub edx, dword [ecx + 0x30]
sub edx, dword [ecx + 0x18]
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0x80]
mov edx, dword [ecx + 0x28]
sub edx, dword [ecx + 0x18]
sub edx, dword [ecx + 4]
jmp 0x5f4d96
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
cmp dword [ebx + 0x78], 0x7b
je 0x5f4c3b
mov esi, dword [esp + 0x18]
jmp 0x5c1f3a
mov ecx, dword [ebx + 0x80]
push ecx
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
jne 0x5f4c01
mov ecx, dword [ebx + 0x80]
mov esi, dword [ebx + 0x70]
test ecx, ecx
je 0x5f4deb
mov eax, dword [ecx + 0x24]
sub eax, dword [ecx + 0x30]
sub eax, dword [ecx + 0x18]
push eax
jmp 0x5f4ded
push 0
push 1
mov eax, ebx
call fcn.005c077a
mov edi, eax
mov dword [edi + 0x18], esi
push 0x24
lea esi, [ebx + 4]
mov dword [edi + 0x1c], 0
call fcn.005be8c2
mov esi, eax
test esi, esi
je 0x5f4ee7
mov eax, dword [ebx + 0x88]
add dword [eax], 0x24
mov al, byte [esi + 0x12]
and al, 0xfd
or al, 1
xor ecx, ecx
mov byte [esi + 0x12], al
mov eax, dword [esp + 0x14]
mov edx, 0xffff
mov dword [esi], 0x46
mov dword [esi + 4], ecx
mov word [esi + 0x10], dx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], edi
cmp eax, ecx
jne 0x5f4e74
mov eax, dword [ebx + 0x80]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x30]
sub ecx, dword [eax + 0x18]
mov dword [esi + 8], ecx
mov eax, dword [ebx + 0x80]
mov edx, dword [eax + 0x28]
sub edx, dword [eax + 0x18]
sub edx, dword [eax + 4]
mov dword [esi + 0xc], edx
jmp 0x5f4e96
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov ecx, edi
mov edx, ebx
call fcn.005c0a27
mov ecx, dword [esp + 0x14]
call fcn.005c0a27
mov eax, dword [ebx + 0x80]
push eax
mov edi, esi
call fcn.005bd379
mov esi, dword [esp + 0x18]
jmp 0x5c1f48
push edi
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.005c0985
jmp 0x5c1f63
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
cmp dword [ebx + 0x78], 0x4b
je 0x5c1ef2
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f2
call dword [0x10001094]
lea eax, [ebx + 0x18]
push 1
push eax
mov dword [eax + 0x40], 0x800a03e9
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03e9
call dword [0x10001094]
mov edx, dword [ebx + 0x80]
mov edx, dword [edx + 0x18]
push 0
sub eax, ecx
add edx, ecx
mov ecx, dword [ebx]
push eax
push edx
call fcn.005bf097
jmp 0x5c1f90
cmp dword [esp + 0x10], 0
jne 0x5f4f41
mov ecx, dword [ebx + 0x6c]
cmp dword [ecx + 0x480], 3
jge 0x5c17e7
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5c17e7
or dword [eax + 4], 1
jmp 0x5c17e7
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03ed
call dword [0x10001094]
mov edx, dword [ebx + 0x6c]
cmp dword [edx + 0x480], 3
jl 0x5c17e7
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f2
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f2
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03ee
call dword [0x10001094]
mov eax, dword [ebx + 0x84]
or dword [eax + 4], 1
jmp 0x5c1891
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f2
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03ee
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f0
call dword [0x10001094]
add ebx, 0x18
push 1
push ebx
mov dword [ebx + 0x40], 0x800a03f1
call dword [0x10001094]
mov eax, 0xffffdfff
and dword [ebx + 0x64], eax
and dword [esp + 0x14], eax
mov eax, dword [edi + 0x374]
mov ecx, dword [eax + 0x584]
mov dword [eax + 0x584], edx
cmp ecx, edx
je 0x5f5037
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x48], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
call fcn.005f513f
mov esi, edi
jmp 0x5c1911
cmp dword [esi + 0x1c], 0
je 0x5c1970
mov eax, dword [ebx + 0x6c]
cmp dword [eax + 0x480], 3
jge 0x5c1970
mov ecx, dword [ebx + 0x80]
mov eax, dword [esi + 8]
push ecx
call fcn.005f527c
mov eax, dword [ebx + 0x80]
or dword [eax + 0x50], 0x80
mov edx, dword [ebx + 0x80]
push edx
call fcn.005bd379
mov eax, dword [ebp + 8]
or eax, 1
push eax
mov ecx, ebx
call fcn.005c16aa
mov eax, dword [ebx + 0x80]
and dword [eax + 0x50], 0xffffff7f
jmp 0x5c1970
or dword [edi + 0x2c], 2
jmp 0x5c17ba
mov edx, dword [ebx + 0x70]
push edx
mov eax, ebx
call fcn.005bc698
mov edi, eax
mov eax, dword [ebx + 0x80]
push eax
call fcn.005bd379
mov eax, dword [ebx + 0x78]
cmp eax, 0x7c
je 0x5f4b61
cmp eax, 0x7b
je 0x5f4b61
mov eax, dword [edi + 0xc]
lea ecx, [esi + 0x1c]
mov dword [ecx], edi
mov dword [esp + 0x1c], ecx
jmp 0x5c1f71
and dword [ebx + 0x64], 0xffffdfff
jmp 0x5c18ca