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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x77b590
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov esi, ecx
cmp dword [esi + 0xd4], 2
jl 0x5d7fb4
mov eax, dword [esi + 0xdc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x5c]
push ebx
mov ebx, dword [ecx + 0x54]
push ebp
push edi
lea edi, [edx + ebx]
mov dword [esp + 0x14], edi
mov edi, dword [ecx + 0x58]
mov ecx, dword [ecx + 0x60]
lea ebp, [ecx + edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xd4]
mov dword [esp + 0x24], edx
mov edx, dword [esi + 0xdc]
add eax, 4
lea ecx, [edx + ecx*4]
cmp eax, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebp
je 0x5d7ac5
mov edx, dword [esi + 0xd4]
mov ecx, dword [esi + 0xdc]
lea edx, [ecx + edx*4]
mov dword [esp + 0x28], edx
mov ecx, dword [eax]
mov ebp, dword [ecx + 0x54]
cmp ebx, ebp
jl 0x5d7a85
mov dword [esp + 0x20], ebp
mov ebx, ebp
mov edx, dword [ecx + 0x5c]
add ebp, edx
cmp dword [esp + 0x14], ebp
jg 0x5d7a94
mov dword [esp + 0x14], ebp
mov ebp, dword [ecx + 0x58]
cmp dword [esp + 0x10], ebp
jl 0x5d7aa1
mov dword [esp + 0x10], ebp
mov ecx, dword [ecx + 0x60]
add ebp, ecx
cmp dword [esp + 0x18], ebp
jg 0x5d7ab0
mov dword [esp + 0x18], ebp
add dword [esp + 0x24], edx
add dword [esp + 0x1c], ecx
add eax, 4
cmp eax, dword [esp + 0x28]
jne 0x5d7a76
mov edi, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x90]
sub ebp, ebx
sub eax, edi
cmp ecx, 6
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], eax
ja case.default.0x5d7ae9
jmp dword [ecx*4 + 0x5d7fc8]
mov edi, dword [esi + 0xdc]
mov eax, dword [esi + 0xd4]
mov ecx, edi
lea edx, [ecx + eax*4]
cmp edi, edx
je case.default.0x5d7ae9
lea esp, [esp]
mov eax, dword [edi]
mov eax, dword [eax + 0x58]
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebx
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x124]
lea eax, [ecx + 0x5c]
push eax
lea eax, [esp + 0x34]
push eax
call edx
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xdc]
add edi, 4
lea edx, [ecx + eax*4]
cmp edi, edx
jne 0x5d7b10
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
mov edi, dword [esi + 0xdc]
mov eax, dword [esi + 0xd4]
mov ecx, edi
lea edx, [ecx + eax*4]
cmp edi, edx
je case.default.0x5d7ae9
mov eax, dword [edi]
mov ecx, dword [eax + 0x54]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x124]
lea edx, [ecx + 0x5c]
push edx
lea edx, [esp + 0x3c]
push edx
call eax
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
add edi, 4
lea eax, [edx + ecx*4]
cmp edi, eax
jne 0x5d7b76
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
mov edi, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd4]
mov edx, edi
lea eax, [edx + ecx*4]
cmp edi, eax
je case.default.0x5d7ae9
mov eax, dword [edi]
mov ecx, dword [eax + 0x58]
mov edx, dword [esp + 0x14]
sub edx, dword [eax + 0x5c]
mov dword [esp + 0x44], ecx
add edx, 1
mov dword [esp + 0x40], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x124]
lea edx, [ecx + 0x5c]
push edx
lea edx, [esp + 0x44]
push edx
call eax
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
add edi, 4
lea eax, [edx + ecx*4]
cmp edi, eax
jne 0x5d7be0
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
mov edi, dword [esi + 0xdc]
mov ecx, dword [esi + 0xd4]
mov edx, edi
lea eax, [edx + ecx*4]
cmp edi, eax
je case.default.0x5d7ae9
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
sub eax, dword [ecx + 0x60]
mov ecx, dword [ecx + 0x54]
add eax, 1
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [edi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x124]
lea eax, [ecx + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call edx
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xdc]
add edi, 4
lea edx, [ecx + eax*4]
cmp edi, edx
jne 0x5d7c50
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
mov edi, dword [esi + 0xdc]
mov eax, dword [esi + 0xd4]
mov ecx, edi
lea edx, [ecx + eax*4]
cmp edi, edx
je case.default.0x5d7ae9
mov eax, dword [edi]
mov ecx, dword [eax + 0x58]
mov edx, ebp
sub edx, dword [eax + 0x5c]
mov dword [esp + 0x54], ecx
sar edx, 1
add edx, ebx
mov dword [esp + 0x50], edx
mov ecx, dword [edi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x124]
lea edx, [ecx + 0x5c]
push edx
lea edx, [esp + 0x54]
push edx
call eax
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
add edi, 4
lea eax, [edx + ecx*4]
cmp edi, eax
jne 0x5d7cc0
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret 4
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
mov ebp, dword [esi + 0xdc]
mov edx, dword [esi + 0xd4]
mov ebx, ebp
lea edx, [ebx + edx*4]
cmp ebp, edx
mov dword [esp + 0x88], ecx
je 0x5d7de9
lea edx, [ecx + edi*4]
cmp ecx, edx
mov eax, ecx
je 0x5d7d66
mov edx, dword [ebp]
mov ebx, dword [edx + 0x58]
mov edx, dword [eax]
cmp ebx, dword [edx + 0x58]
jl 0x5d7d66
add eax, 4
lea edx, [ecx + edi*4]
cmp eax, edx
jne 0x5d7d55
sub eax, ecx
add edi, 1
sar eax, 2
cmp edi, dword [esp + 0x6c]
mov ebx, eax
mov dword [esp + 0x68], edi
jbe 0x5d7d9f
push 4
push edi
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.0040e110
mov ecx, dword [esp + 0x84]
mov edi, dword [esp + 0x7c]
add esp, 0x14
lea eax, [ecx + ebx*4]
sub edi, ebx
lea ecx, [edi*4 - 4]
push ecx
push eax
add eax, 4
push eax
call fcn.0074d9b0
mov edx, dword [ebp]
mov eax, dword [esp + 0x7c]
mov dword [eax + ebx*4], edx
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
mov edi, dword [esp + 0x74]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x7c]
add ebp, 4
add esp, 0xc
cmp ebp, eax
jne 0x5d7d46
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x1c]
mov esi, dword [esi + 0xd4]
add esi, 0xffffffff
cdq
idiv esi
mov ebx, dword [esp + 0x10]
lea edx, [ecx + edi*4]
cmp ecx, edx
mov esi, ecx
mov ebp, eax
je 0x5d7f9d
lea esp, [esp]
mov eax, dword [esi]
mov ecx, dword [eax + 0x54]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x124]
lea eax, [ecx + 0x5c]
push eax
lea eax, [esp + 0x5c]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x60]
mov edx, dword [esp + 0x68]
add ecx, ebp
add ebx, ecx
mov ecx, dword [esp + 0x70]
add esi, 4
lea eax, [ecx + edx*4]
cmp esi, eax
jne 0x5d7e10
jmp 0x5d7f9d
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], ecx
mov ebp, dword [esi + 0xdc]
mov edx, dword [esi + 0xd4]
mov eax, ebp
lea edx, [eax + edx*4]
cmp ebp, edx
mov dword [esp + 0x88], 1
je 0x5d7f3e
lea edx, [ecx + edi*4]
cmp ecx, edx
mov eax, ecx
je 0x5d7ea6
mov edx, dword [ebp]
mov ebx, dword [edx + 0x54]
mov edx, dword [eax]
cmp ebx, dword [edx + 0x54]
jl 0x5d7ea6
add eax, 4
lea edx, [ecx + edi*4]
cmp eax, edx
jne 0x5d7e95
sub eax, ecx
add edi, 1
sar eax, 2
cmp edi, dword [esp + 0x78]
mov ebx, eax
mov dword [esp + 0x74], edi
jbe 0x5d7eeb
push 4
push edi
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x88]
push edx
call fcn.0040e110
mov ecx, dword [esp + 0x90]
mov edi, dword [esp + 0x88]
add esp, 0x14
lea eax, [ecx + ebx*4]
sub edi, ebx
lea ecx, [edi*4 - 4]
push ecx
push eax
add eax, 4
push eax
call fcn.0074d9b0
mov edx, dword [ebp]
mov eax, dword [esp + 0x88]
mov dword [eax + ebx*4], edx
mov ecx, dword [esi + 0xd4]
mov edx, dword [esi + 0xdc]
mov edi, dword [esp + 0x80]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x88]
add ebp, 4
add esp, 0xc
cmp ebp, eax
jne 0x5d7e86
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov esi, dword [esi + 0xd4]
add esi, 0xffffffff
cdq
idiv esi
lea edx, [ecx + edi*4]
cmp ecx, edx
mov esi, ecx
mov ebp, eax
je 0x5d7f9d
lea ecx, [ecx]
mov eax, dword [esi]
mov eax, dword [eax + 0x58]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], ebx
mov ecx, dword [esi]
mov edx, dword [ecx]
mov edx, dword [edx + 0x124]
lea eax, [ecx + 0x5c]
push eax
lea eax, [esp + 0x64]
push eax
call edx
mov eax, dword [esi]
mov ecx, dword [eax + 0x5c]
mov edx, dword [esp + 0x74]
add ecx, ebp
add ebx, ecx
mov ecx, dword [esp + 0x7c]
add esi, 4
lea eax, [ecx + edx*4]
cmp esi, eax
jne 0x5d7f60
push ecx
mov dword [esp + 0x8c], 0xffffffff
call fcn.0067abe0
add esp, 4
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x74]
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret 4