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

Disassembly:
sub esp, 0x390
push ebx
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0xac0]
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp + 0x24]
push esi
push edi
add eax, 0x4c
push eax
mov dword [esp + 0x1c], ecx
push edx
lea ecx, [esp + 0xa0]
call fcn.005af08c
mov eax, dword [ebp + 0xac0]
mov ecx, dword [ebp + 0x24]
add eax, 0x4c
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.005af08c
mov ecx, dword [ebp + 0xac0]
mov eax, dword [ecx + 0x2c]
xor ebx, ebx
cmp eax, ebx
je 0x5c67f4
mov edx, dword [eax + 8]
jmp 0x5c67f6
xor edx, edx
mov eax, dword [ebp + 0xa98]
mov esi, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
xor esi, esi
mov si, word [eax + 6]
movzx eax, word [eax + 8]
add ecx, 0x4c
push esi
push eax
push ecx
push edx
lea ecx, [esp + 0x278]
call fcn.00607c9c
mov ecx, dword [ebp + 0xac0]
mov eax, dword [ecx + 0x2c]
cmp eax, ebx
je 0x5c6834
mov edx, dword [eax + 8]
jmp 0x5c6836
xor edx, edx
mov eax, dword [ebp + 0xa98]
mov esi, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
lea eax, [esi + eax*4]
xor esi, esi
mov si, word [eax + 6]
movzx eax, word [eax + 8]
add ecx, 0x4c
push esi
push eax
push ecx
push edx
lea ecx, [esp + 0x140]
call fcn.00607c9c
cmp dword [ebp + 0xa94], ebx
je 0x5c694d
mov eax, 2
mov dword [esp + 0x134], eax
mov dword [esp + 0x9c], eax
mov eax, 5
lea esi, [ebp + 0x34]
push esi
mov dword [esp + 0x270], eax
mov dword [esp + 0x5c], eax
call fcn.005766ac
add esp, 4
test eax, eax
jne 0x5c694d
mov ecx, 7
lea edi, [esp + 0x38]
rep movsd dword es:[edi], dword [esi]
cmp dword [esp + 0x50], 1
je 0x5c68c4
lea ecx, [esp + 0x38]
push ecx
call fcn.0057551c
add esp, 4
mov edx, dword [ebp + 0xac0]
and edx, 0xfffff000
mov eax, dword [edx]
mov ecx, dword [eax + 0x128]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x40]
push eax
call fcn.005771bc
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x27c]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x144]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [esp + 0x28]
lea edi, [esp + 0xac]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
mov byte [esp + 0x28c], 1
mov byte [esp + 0x154], 1
mov byte [esp + 0x78], 1
mov byte [esp + 0xbc], 1
mov esi, dword [ebp + 0xac0]
mov ecx, esi
call fcn.0058162c
test eax, eax
je 0x5c696e
mov ecx, dword [esi + 4]
mov eax, dword [ecx + 0x20]
mov cl, byte [eax + 0x129]
test cl, cl
jne 0x5c6987
mov eax, dword [esi + 0x2c]
mov edx, dword [eax + 8]
cmp eax, dword [edx + 0x3e8]
jne 0x5c6987
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x3e4]
jmp 0x5c698a
add eax, 0x10
mov dword [ebp + 0x68], eax
cmp dword [eax + 0x48], ebx
jne 0x5c6995
mov dword [ebp + 0x68], ebx
mov edx, dword [ebp + 0xac0]
mov eax, dword [esp + 0x3a4]
add edx, 0x50
cmp eax, ebx
mov dword [ebp + 0x30], edx
mov ecx, ebp
je 0x5c6a09
call fcn.005d9a5c
test eax, eax
je 0x5c6db0
cmp dword [esp + 0x3ac], ebx
je 0x5c69ef
mov ecx, dword [ebp + 0x70]
mov eax, 1
cmp ecx, eax
jl 0x5c6a2c
mov ecx, 0xc
lea esp, [esp]
mov edx, dword [ebp + 0x7c]
mov dword [ecx + edx], ebx
mov edx, dword [ebp + 0x70]
inc eax
add ecx, 0xc
cmp eax, edx
jle 0x5c69dc
jmp 0x5c6a2c
mov eax, dword [ebp + 0xac0]
mov ecx, dword [eax + 4]
cmp word [ecx + 0x56], bx
je 0x5c6a2c
push 1
mov ecx, ebp
call fcn.005c3bac
jmp 0x5c6a2c
call fcn.005d470c
push 4
mov ecx, ebp
call fcn.005d474c
push 4
mov ecx, ebp
mov dword [ebp + 0xa80], eax
call fcn.005d474c
mov dword [ebp + 0xa84], eax
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xc4], ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [ebp + 0xa94]
xor edi, edi
neg ebx
sbb ebx, ebx
lea edx, [esp + 0xf8]
and ebx, edx
mov dword [esp + 0x14], ebx
lea esp, [esp]
push ebx
lea eax, [esp + 0xe0]
push eax
mov ecx, ebp
call fcn.005daa1c
mov cl, byte [ebp + 0x20]
test cl, cl
jne 0x5c6c79
test eax, eax
je 0x5c6bff
cmp eax, 0x80
je 0x5c6c79
test al, 6
je 0x5c6b37
mov ecx, dword [ebp + 0x78]
mov edx, dword [ebp + 0xa9c]
mov edx, dword [ecx + edx*4]
test edx, edx
mov esi, dword [ebp + 0xaa0]
mov dword [esp + 0x80], edx
mov dword [esp + 0xc4], edx
mov ecx, dword [ecx + esi*4]
mov esi, ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc8], esi
jne 0x5c6be9
test ecx, ecx
je 0x5c6b01
mov edx, ecx
xor ecx, ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], ecx
mov esi, dword [ebp + 0xabc]
xor ebx, ebx
test esi, esi
setne bl
inc ebx
mov esi, ebx
mov ebx, dword [esp + 0x14]
test edx, edx
mov dword [esp + 0x88], esi
mov dword [esp + 0xcc], esi
jne 0x5c6b2f
test ecx, ecx
mov dword [esp + 0x10], edx
je 0x5c6b37
mov dword [esp + 0x10], 1
test al, 9
je 0x5c6a6c
test edi, edi
je 0x5c6b65
lea ecx, [esp + 0x268]
call fcn.0060889c
mov eax, dword [ebp + 0xa94]
test eax, eax
je 0x5c6b65
lea ecx, [esp + 0x130]
call fcn.0060889c
mov eax, dword [ebp + 0xa98]
mov ecx, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
mov esi, dword [ecx + eax*4]
test esi, esi
lea eax, [ecx + eax*4]
je 0x5c6bf8
mov ecx, dword [esp + 0x3ac]
test ecx, ecx
jne 0x5c6bf8
mov cx, word [eax + 8]
mov word [esp + 0x2f0], cx
mov word [esp + 0x1b8], cx
mov cx, word [eax + 6]
mov word [esp + 0x2f2], cx
mov word [esp + 0x1ba], cx
movzx edx, word [eax + 4]
push esi
push edx
lea ecx, [esp + 0x270]
call fcn.006093bc
mov eax, dword [ebp + 0xa98]
mov ecx, dword [ebp + 0x7c]
lea eax, [eax + eax*2]
movzx edx, word [ecx + eax*4 + 4]
push esi
push edx
lea ecx, [esp + 0x138]
call fcn.006093bc
mov edi, 1
jmp 0x5c6a6c
test ecx, ecx
je 0x5c6b01
xor esi, esi
jmp 0x5c6b15
xor edi, edi
jmp 0x5c6a6c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5c6c36
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x58]
call fcn.005b00dc
mov eax, dword [ebp + 0xa94]
test eax, eax
je 0x5c6c36
lea ecx, [esp + 0xf8]
push ecx
lea ecx, [esp + 0x9c]
call fcn.005b00dc
test edi, edi
je 0x5c6a6c
lea edx, [esp + 0xdc]
push edx
lea ecx, [esp + 0x26c]
call fcn.0060947c
mov eax, dword [ebp + 0xa94]
test eax, eax
je 0x5c6a6c
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x134]
call fcn.0060947c
jmp 0x5c6a6c
test edi, edi
je 0x5c6ca3
lea ecx, [esp + 0x268]
call fcn.0060889c
mov eax, dword [ebp + 0xa94]
test eax, eax
je 0x5c6d9d
lea ecx, [esp + 0x130]
call fcn.0060889c
mov eax, dword [ebp + 0xa94]
test eax, eax
je 0x5c6d9d
mov ecx, dword [ebp + 0xac0]
mov esi, dword [ecx + 0x50]
mov edi, dword [esp + 0x18]
cmp esi, edi
je 0x5c6d9d
mov ebx, 0x7ffffff
nop
mov al, byte [esi + 0x26]
cmp al, 2
je 0x5c6cdb
cmp al, 1
jne 0x5c6d84
mov ecx, esi
call fcn.0059aa0c
cmp dword [eax], ebx
je 0x5c6d84
mov ecx, esi
call fcn.0059aa0c
cmp dword [eax + 0x10], ebx
je 0x5c6d84
mov ecx, esi
call fcn.0059aa0c
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x24], edx
mov eax, dword [eax + 0xc]
mov ecx, esi
mov dword [esp + 0x28], eax
call fcn.0059aa0c
add eax, 0x10
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x3c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x28]
test eax, eax
mov dword [esp + 0x44], edx
je 0x5c6d50
mov eax, dword [eax + 0xd4]
jmp 0x5c6d52
xor eax, eax
push eax
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0057652c
mov dl, byte [esp + 0x164]
add esp, 0x10
test dl, dl
sete al
lea ecx, [esp + 0x114]
push eax
push ecx
jmp 0x5c6d88
push 0
push 0
push 1
mov ecx, ebp
push esi
call fcn.005d8e2c
mov esi, dword [esi + 0x18]
cmp esi, edi
jne 0x5c6ccc
mov ecx, ebp
call fcn.005d471c
mov edx, dword [ebp + 4]
cmp edx, dword [ebp + 8]
jle 0x5c6db0
mov byte [ebp + 0x20], 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x390
ret 0xc