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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x24]
mov edx, dword [esi]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov dword [ebp - 0x28], eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x58], edi
movsx eax, word [ebx]
cmp eax, ecx
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], edx
jbe 0x5f26fb
lea edi, [eax + 3]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2c]
and edi, 0xfffffffc
push edi
push ecx
push 4
push edx
call fcn.005c75e6
add esp, 0x18
cmp dword [ebp - 4], 0
mov dword [esi + 0x2c], eax
jne 0x5f2971
mov dword [esi + 0x24], edi
xor edi, edi
movsx eax, word [ebx + 2]
mov ecx, dword [esi + 0x18]
inc eax
inc eax
cmp eax, ecx
jbe 0x5f2736
lea edi, [eax + 9]
lea eax, [ebp - 4]
push eax
push dword [esi + 0x20]
and edi, 0xfffffff8
push edi
push ecx
push 0x28
push dword [ebp - 0x2c]
call fcn.005c75e6
add esp, 0x18
cmp dword [ebp - 4], 0
mov dword [esi + 0x20], eax
jne 0x5f2971
mov dword [esi + 0x18], edi
xor edi, edi
movsx eax, word [ebx + 2]
mov dword [esi + 0x1c], eax
movsx eax, word [ebx]
or dword [esi + 0x64], 0xffffffff
push ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x48], 2
call fcn.005c4bc3
pop ecx
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x5f2766
mov dword [esi + 0x48], 0xfffffffe
mov dword [esi + 0x64], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [esi + 0x20]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x1c]
cmp eax, edi
mov dword [esi + 0x74], edi
mov dword [esi + 0x78], edi
mov dword [ebp - 0x2c], ecx
je 0x5f2971
mov edx, dword [ebx + 8]
imul eax, eax, 0x28
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x18], edx
mov edx, dword [ebx + 0xc]
movsx ebx, word [edx]
imul ebx, ebx, 0x28
add ebx, ecx
cmp ecx, dword [ebp - 0x10]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], ebx
mov edi, ecx
jae 0x5f2875
jmp 0x5f27ca
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
push dword [ebp - 0x1c]
mov word [edi + 0xc], cx
mov cx, word [eax + 4]
mov word [edi + 0xe], cx
push dword [eax]
call fcn.005c3714
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x24]
add eax, ecx
mov dword [edi + 0x10], eax
mov dword [edi + 4], eax
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.005c3714
mov ecx, dword [ebp - 0x28]
add eax, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
and eax, 3
add esp, 0x10
sub eax, 0
je 0x5f2829
dec eax
dec eax
je 0x5f2822
and word [edi], 0
jmp 0x5f282e
mov word [edi], 2
jmp 0x5f282e
mov word [edi], 1
cmp edi, ebx
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x24], eax
mov dword [eax + 0x20], edi
mov dword [ebp - 0x14], edi
jne 0x5f285f
mov eax, dword [ebp + 8]
movsx ecx, word [eax]
inc dword [ebp - 8]
cmp dword [ebp - 8], ecx
jge 0x5f285f
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp - 8]
movsx ebx, word [eax + ecx*2]
imul ebx, ebx, 0x28
add ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], ebx
add dword [ebp - 0xc], 8
add edi, 0x28
inc dword [ebp - 0x18]
cmp edi, dword [ebp - 0x10]
jb 0x5f27c7
mov ecx, dword [ebp - 0x2c]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
lea edi, [eax + edx*4]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
xor esi, esi
jmp 0x5f289f
movsx esi, si
imul esi, esi, 0x28
add esi, ecx
mov dword [eax], esi
mov si, word [edx]
inc si
add eax, 4
inc edx
movzx esi, si
inc edx
cmp eax, edi
jb 0x5f2888
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
cmp ecx, dword [ebp - 0x10]
mov eax, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp + 8], 4
jae 0x5f2971
lea edi, [ecx + 0xc]
jmp 0x5f28c8
mov eax, dword [ebp - 0x2c]
lea ecx, [edi - 0xc]
cmp ecx, eax
jne 0x5f28fa
mov ebx, dword [eax + 0x24]
movsx ecx, word [ebx + 0xc]
movsx esi, word [eax + 0xc]
movsx edx, word [ebx + 0xe]
sub esi, ecx
movsx ecx, word [eax + 0xe]
sub ecx, edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ecx
call fcn.005f25a1
add ebx, 0x28
mov dword [ebp + 8], eax
mov dword [ebp - 0x2c], ebx
mov al, byte [ebp + 8]
movsx ecx, word [edi]
mov byte [edi - 0xa], al
mov eax, dword [edi + 0x14]
movsx esi, word [eax + 0xc]
movsx ebx, word [eax + 0xe]
sub esi, ecx
movsx ecx, word [edi + 2]
sub ebx, ecx
mov ecx, ebx
call fcn.005f25a1
test byte [edi - 0xc], 3
mov dword [ebp + 8], eax
mov byte [edi - 9], al
jne 0x5f2956
mov cl, byte [edi - 0xa]
cmp al, cl
jne 0x5f294a
cmp al, 4
jne 0x5f2956
push ebx
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.005c3a79
add esp, 0x10
test eax, eax
jne 0x5f2956
jmp 0x5f295c
movsx eax, al
movsx ecx, cl
neg eax
cmp ecx, eax
jne 0x5f295c
or word [edi - 0xc], 0x100
add edi, 0x28
lea eax, [edi - 0xc]
cmp eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
jb 0x5f28c5
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret