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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff48
mov ebp, eax
xor eax, eax
mov edi, edx
mov dword [esp], ecx
mov dword [esp + 0x24], eax
xor edx, edx
mov eax, ebp
mov dword [esp + 0x60], edx
mov ecx, dword [ebp]
mov dword [esp + 0x68], ecx
mov esi, dword [ebp + 8]
call fcn.00632354
mov dword [esp + 0x54], eax
mov eax, ebp
call fcn.00632354
mov dword [esp + 0x50], eax
xor edx, edx
mov dl, byte [edi]
mov dword [esp + 0x5c], edx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x6c]
mov edx, dword [eax]
mov dword [esp + 0x70], edx
cmp dword [esp + 0x5c], 0x87
je 0x5f7987
mov ebx, 1
jmp 0x5f7972
xor eax, eax
mov edx, dword [esp + 0x6c]
add edx, 8
cmp eax, dword [esp + 0x70]
jge 0x5f7903
movzx ecx, word [edx + 0xc]
cmp ebx, ecx
je 0x5f7903
inc eax
add edx, 0x10
cmp eax, dword [esp + 0x70]
jl 0x5f78f1
cmp eax, dword [esp + 0x70]
jne 0x5f7971
xor ecx, ecx
mov edx, 0x9b
mov eax, dword [esp + 0x68]
call fcn.0061cb58
mov dword [esp + 0x78], eax
cmp dword [esp + 0x78], 0
jne 0x5f792e
mov eax, 7
jmp 0x5f800f
mov edx, dword [esp + 0x78]
or dword [edx + 4], 0x800
mov ecx, dword [esp + 0x78]
mov dword [ecx + 8], ebx
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x6c]
mov eax, ebp
call fcn.0061dbd4
mov dword [esp + 0x6c], eax
mov dword [edi + 0x30], eax
cmp dword [esp + 0x6c], 0
je 0x5f7971
mov edx, dword [esp + 0x70]
shl edx, 4
mov ecx, dword [esp + 0x6c]
mov word [ecx + edx + 0x14], bx
inc dword [esp + 0x70]
inc ebx
mov ecx, dword [esp + 0x68]
cmp byte [ecx + 0x57], 0
jne 0x5f7987
mov eax, dword [edi + 0x1c]
cmp ebx, dword [eax]
jle 0x5f78e2
mov eax, dword [esp + 0x70]
inc eax
shl eax, 2
xor edx, edx
push edx
push eax
mov eax, dword [esp + 0x70]
call fcn.0064ce10
mov dword [esp + 0x74], eax
cmp dword [esp + 0x74], 0
je 0x5f79ed
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov dword [edx], ecx
mov ebx, 1
mov eax, dword [esp + 0x6c]
add eax, 8
cmp ebx, dword [esp + 0x70]
jg 0x5f79d9
movzx edx, word [eax + 0xc]
dec edx
mov ecx, dword [esp + 0x74]
mov dword [ecx + ebx*4], edx
inc ebx
add eax, 0x10
cmp ebx, dword [esp + 0x70]
jle 0x5f79c3
mov ecx, 1
mov edx, edi
mov eax, ebp
call fcn.005f699c
mov dword [esp + 0x64], eax
jmp 0x5f79f3
xor eax, eax
mov dword [esp + 0x64], eax
cmp dword [esp + 0x5c], 0x87
jne 0x5f7a05
xor edx, edx
mov dword [esp + 0x44], edx
jmp 0x5f7a7b
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [esp + 0x7c], eax
mov edx, dword [ebp + 0x2c]
inc edx
mov dword [esp + 0x44], edx
mov edx, 0x47
mov ecx, dword [esp + 0x7c]
inc ecx
add dword [ebp + 0x2c], ecx
xor ecx, ecx
mov eax, dword [esp + 0x44]
push eax
mov eax, esi
call fcn.00631f34
mov ecx, 1
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x68]
call fcn.005f5580
mov dword [esp + 0x60], eax
cmp dword [esp + 0x60], 0
je 0x5f7a7b
xor ebx, ebx
cmp ebx, dword [esp + 0x7c]
jge 0x5f7a7b
mov ecx, ebx
mov edx, edi
mov eax, ebp
call fcn.005f695c
mov edx, dword [esp + 0x60]
mov dword [edx + ebx*4 + 0x14], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x10]
mov byte [ecx + ebx], 0
inc ebx
cmp ebx, dword [esp + 0x7c]
jl 0x5f7a56
cmp dword [esp + 0x5c], 0x87
mov eax, 1
je 0x5f7a94
cmp dword [esp + 0x5c], 0x86
jne 0x5f7ac1
mov edx, dword [esp + 0x68]
test byte [edx + 0x52], 0x20
jne 0x5f7ac1
mov dword [esp + 4], edi
jmp 0x5f7aa9
inc eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 0x34]
test edx, edx
je 0x5f7ac1
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx]
cmp ecx, dword [esp + 0x5c]
je 0x5f7aa4
cmp eax, 3
jg 0x5f7acc
mov dword [esp + 4], edi
jmp 0x5f7aeb
mov dword [esp + 4], edi
mov ebx, 2
cmp eax, ebx
jle 0x5f7aeb
mov edx, dword [esp + 4]
mov ecx, dword [edx + 0x34]
mov dword [esp + 4], ecx
add ebx, 2
cmp eax, ebx
jg 0x5f7ad9
mov eax, dword [esp + 4]
mov ebx, dword [eax + 0x34]
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax + 0x34], edx
xor ecx, ecx
mov dword [ebx + 0x38], ecx
mov eax, dword [ebp]
xor ecx, ecx
mov edx, dword [esp + 0x6c]
call fcn.0061d67c
mov dword [ebx + 0x30], eax
push 0x67a984
mov ecx, dword [edi + 0x30]
mov edx, edi
mov eax, ebp
call fcn.0061b5d8
push 0x67a984
mov ecx, dword [ebx + 0x30]
mov edx, ebx
mov eax, ebp
call fcn.0061b5d8
mov ecx, dword [esp + 0x54]
mov edx, edi
mov eax, ebp
call fcn.005f6830
cmp dword [edi + 8], 0
je 0x5f7b9b
cmp dword [esp + 0x5c], 0x87
jne 0x5f7b9b
inc dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x3c], ecx
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x40], eax
mov edx, dword [esp + 0x3c]
push edx
cmp dword [edi + 0xc], 0
je 0x5f7b75
mov ecx, dword [edi + 0xc]
inc ecx
jmp 0x5f7b78
mov ecx, dword [edi + 8]
mov edx, 0x50
mov eax, esi
call fcn.00631f34
mov ecx, dword [esp + 0x40]
mov edx, 0x50
push ecx
mov eax, esi
mov ecx, dword [esp + 0x40]
call fcn.00631f34
jmp 0x5f7ba5
xor ecx, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
mov edx, dword [edi + 0x3c]
mov eax, dword [esp + 0x68]
call fcn.0061d184
xor ecx, ecx
mov dword [edi + 0x3c], ecx
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 8], eax
inc dword [ebp + 0x2c]
mov edx, dword [ebp + 0x2c]
mov dword [esp + 0xc], edx
mov edx, 0xd
inc dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0x18], ecx
inc dword [ebp + 0x2c]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x80]
mov ecx, dword [esp + 8]
call fcn.005f3ebc
lea eax, [esp + 0x9c]
mov ecx, dword [esp + 0xc]
mov edx, 0xd
call fcn.005f3ebc
xor eax, eax
mov al, byte [edi]
call fcn.005f5694
push eax
push str.MERGE___s_
push 1
push ebp
call fcn.00632238
add esp, 0x10
mov eax, esi
call fcn.0063252c
inc eax
mov dword [esp + 0x10], eax
push 0
mov edx, dword [esp + 0x14]
mov eax, esi
push edx
mov edx, 0xb
mov ecx, dword [esp + 0x10]
call fcn.00631f48
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x3c]
mov dword [ebx + 8], ecx
push str.LEFT
push 1
push ebp
call fcn.00632238
add esp, 0xc
lea ecx, [esp + 0x80]
mov edx, ebx
mov eax, ebp
call fcn.005fb6a0
mov edx, dword [esp + 8]
mov eax, esi
call fcn.00632334
mov edx, dword [esp + 0x58]
mov eax, esi
call fcn.00632850
mov eax, esi
call fcn.0063252c
inc eax
mov dword [esp + 0x14], eax
push 0
mov edx, dword [esp + 0x18]
mov eax, esi
push edx
mov edx, 0xb
mov ecx, dword [esp + 0x14]
call fcn.00631f48
mov dword [esp + 0x58], eax
xor edx, edx
mov ecx, dword [edi + 8]
mov dword [esp + 0x48], ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x40]
mov dword [edi + 8], eax
mov dword [edi + 0xc], edx
push str.RIGHT
push 1
push ebp
call fcn.00632238
add esp, 0xc
lea ecx, [esp + 0x9c]
mov edx, edi
mov eax, ebp
call fcn.005fb6a0
mov ecx, dword [esp + 0x48]
mov dword [edi + 8], ecx
mov eax, dword [esp + 0x4c]
mov dword [edi + 0xc], eax
mov eax, esi
mov edx, dword [esp + 0xc]
call fcn.00632334
mov edx, dword [esp]
push edx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x4c]
push ecx
mov eax, dword [esp + 0x6c]
push eax
mov eax, ebp
mov edx, dword [esp + 0x64]
push edx
mov edx, edi
lea ecx, [esp + 0x94]
call fcn.005f75f4
mov dword [esp + 0x20], eax
cmp dword [esp + 0x5c], 0x87
je 0x5f7d40
cmp dword [esp + 0x5c], 0x86
jne 0x5f7d6c
mov ecx, dword [esp]
push ecx
mov eax, dword [esp + 0x20]
push eax
mov edx, dword [esp + 0x4c]
push edx
mov edx, edi
mov ecx, dword [esp + 0x6c]
push ecx
mov eax, dword [esp + 0x64]
push eax
mov eax, ebp
lea ecx, [esp + 0xb0]
call fcn.005f75f4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
call fcn.005f55fc
cmp dword [esp + 0x5c], 0x88
je 0x5f7d89
cmp dword [esp + 0x5c], 0x89
jne 0x5f7d97
mov edx, dword [esp + 0x54]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
jmp 0x5f7de5
mov eax, dword [esp + 0x24]
mov edx, 0xa
push eax
mov eax, esi
mov ecx, dword [esp + 0x20]
call fcn.00631f34
mov dword [esp + 0x28], eax
mov eax, esi
mov ecx, dword [esp + 0x54]
mov edx, 0xc
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00631f34
mov dword [esp + 0x2c], eax
mov eax, esi
mov edx, dword [esp + 0x28]
call fcn.00632040
mov dx, word [ebx + 2]
mov ax, word [edi + 2]
call fcn.00646e88
mov word [edi + 2], ax
cmp dword [esp + 0x5c], 0x89
jne 0x5f7e0b
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
mov cx, word [ebx + 2]
cmp cx, word [edi + 2]
jge 0x5f7e44
mov ax, word [ebx + 2]
mov word [edi + 2], ax
jmp 0x5f7e44
mov edx, dword [esp + 0x20]
mov eax, esi
push edx
mov edx, 0xa
mov ecx, dword [esp + 0x1c]
call fcn.00631f34
mov dword [esp + 0x30], eax
mov eax, esi
mov ecx, dword [esp + 0x54]
mov edx, 0xc
push ecx
mov ecx, dword [esp + 0xc]
call fcn.00631f34
mov edx, dword [esp + 0x30]
mov eax, esi
call fcn.00632040
mov ecx, dword [esp + 0x20]
mov edx, 0xa
push ecx
mov eax, esi
mov ecx, dword [esp + 0x1c]
call fcn.00631f34
mov edi, eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [esp + 0xc]
mov edx, 0xc
mov eax, esi
call fcn.00631f34
mov edx, dword [esp + 0x50]
mov eax, esi
call fcn.00632040
cmp dword [esp + 0x5c], 0x87
jne 0x5f7e8b
mov dword [esp + 0x34], edi
jmp 0x5f7ec0
cmp dword [esp + 0x5c], 0x89
jne 0x5f7e9c
mov dword [esp + 0x34], edi
inc edi
jmp 0x5f7ec0
mov edx, dword [esp + 0x28]
mov eax, esi
push edx
mov edx, 0xc
mov ecx, dword [esp + 0xc]
call fcn.00631f34
mov dword [esp + 0x34], eax
mov eax, esi
mov edx, dword [esp + 0x50]
call fcn.00632040
mov eax, esi
call fcn.0063252c
mov dword [esp + 0x38], eax
cmp dword [esp + 0x5c], 0x87
je 0x5f7edf
cmp dword [esp + 0x5c], 0x86
jne 0x5f7ef4
mov edx, dword [esp + 0x24]
mov eax, esi
push edx
mov edx, 0xa
mov ecx, dword [esp + 0x20]
call fcn.00631f34
mov ecx, dword [esp + 0x30]
mov edx, 0xc
push ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
call fcn.00631f34
mov edx, dword [esp + 0x50]
mov eax, esi
call fcn.00632040
mov edx, dword [esp + 0x58]
mov eax, esi
call fcn.00632850
mov ecx, dword [esp + 0x2c]
mov edx, 0xc
push ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
call fcn.00631f34
mov ecx, dword [esp + 0x30]
mov edx, 0xc
push ecx
mov eax, esi
mov ecx, dword [esp + 0x10]
call fcn.00631f34
mov edx, dword [esp + 0x50]
mov eax, esi
call fcn.006323d0
push 0
push 0
mov ecx, dword [esp + 0x7c]
push ecx
push 0xfffffffffffffff2
xor ecx, ecx
mov edx, 0x59
mov eax, esi
call fcn.006320e4
mov ecx, dword [esp + 0xa8]
push ecx
mov eax, dword [esp + 0x74]
push eax
mov edx, dword [esp + 0x6c]
push edx
push 0xfffffffffffffff8
mov ecx, dword [esp + 0x9c]
mov edx, 0x5a
mov eax, esi
call fcn.006320e4
mov dx, 1
mov eax, esi
call fcn.0063281c
mov ecx, dword [esp + 0x34]
mov edx, 0xe
push ecx
mov eax, esi
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.00631f48
mov edx, dword [esp + 0x54]
mov eax, esi
call fcn.006323d0
mov ecx, dword [esp + 4]
cmp dword [ecx + 0x34], 0
je 0x5f7fdf
mov ecx, dword [esp + 4]
mov ecx, dword [ecx + 0x34]
mov edx, 0x5f3fe0
mov eax, ebp
call fcn.005ccf78
mov ecx, dword [esp + 4]
mov dword [ecx + 0x34], ebx
mov eax, dword [esp + 4]
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 0x30]
mov eax, dword [esp + 0x68]
call fcn.0061de68
xor edx, edx
mov eax, ebp
mov dword [ebx + 0x30], edx
call fcn.006322cc
cmp dword [ebp + 0x24], 0
setne al
and eax, 1
add esp, 0xb8
pop ebp
pop edi
pop esi
pop ebx
ret