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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x194
mov eax, dword [0x628560]
xor eax, esp
mov dword [esp + 0x190], eax
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x38], edx
mov edx, dword [edx*4 + 0x5f36b8]
lea ecx, [ecx + ecx*2 + 0xde]
push esi
mov dword [esp + 0x18], eax
shl ecx, 4
add edx, ecx
lea eax, [eax + edx*4]
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
mov edx, dword [ecx*4 + 0x5f3b90]
mov dword [esp + 0x64], eax
lea eax, [eax + edx*2]
mov dword [esp + 0x60], eax
mov eax, dword [ecx*8 + 0x5f3538]
sar eax, 2
mov dword [esp + 0x44], eax
mov eax, dword [ecx*8 + 0x5f353c]
sar eax, 2
test ecx, ecx
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], eax
jne 0x5bb45d
mov eax, dword [edi + 0x48]
cdq
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x5bb46d
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x10000000
test ecx, ecx
movsx ebx, word [edi + 0x4c]
movsx esi, word [edi + 0x4e]
je 0x5bb49f
cmp dword [esp + 0x40], 0
je 0x5bb49f
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ecx, [edi + 0x40]
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.00575d60
add esp, 0x14
movsx eax, word [edi + 0x40]
movsx ecx, word [edi + 0x42]
lea edx, [eax + eax]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x2c], ecx
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x2c]
add ecx, ecx
sub eax, ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
add eax, eax
add eax, eax
push eax
mov eax, dword [edi + 0x38]
add ecx, ecx
add ecx, ecx
push ecx
push esi
push ebx
push eax
mov eax, dword [esp + 0x30]
lea edx, [edi + 0x10]
push edx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x4cd0]
lea edx, [esp + 0xac]
push edx
mov dword [esp + 0x38], 0x10
call ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b5c]
call eax
mov ecx, dword [esp + 0x78]
movsx edx, word [ecx + esi*2]
mov ecx, dword [esp + 0x8c]
add eax, edx
movsx edx, word [ecx + ebx*2]
add eax, edx
mov edx, dword [esp + 0x90]
mov dword [esp + 0x64], eax
movzx ecx, bx
mov eax, esi
shl eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x94]
mov dword [edx], eax
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x70]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x50]
push eax
push ecx
push edx
call fcn.0058d7c0
add esp, 0x40
cmp edx, dword [esp + 0x3c]
ja 0x5bb58c
jb 0x5bb584
cmp eax, dword [esp + 0x38]
jae 0x5bb58c
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
cmp ebx, dword [esp + 0x30]
jne 0x5bb59c
cmp esi, dword [esp + 0x2c]
je 0x5bb6fa
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
cmp ecx, dword [eax + 0x1f34]
jl 0x5bb6fa
mov edx, ecx
cmp edx, dword [eax + 0x1f3c]
jg 0x5bb6fa
mov ecx, dword [esp + 0x2c]
mov edx, eax
cmp ecx, dword [edx + 0x1f38]
jl 0x5bb6fa
mov eax, ecx
mov ecx, edx
cmp eax, dword [ecx + 0x1f40]
jg 0x5bb6fa
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x38]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x48]
add eax, eax
add eax, eax
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x30]
lea eax, [edi + 0x10]
push eax
lea edx, [esp + 0x30]
push edx
mov edx, dword [ecx + 0x4cd0]
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0x38], 0x10
call edx
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + 0x28]
push ecx
mov ecx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x44]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4b5c]
call edx
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
add ecx, ecx
movsx ecx, word [ecx + edx]
mov edx, dword [esp + 0x8c]
add eax, ecx
mov ecx, dword [esp + 0x60]
add ecx, ecx
movsx ecx, word [ecx + edx]
add eax, ecx
add esp, 0x30
cmp eax, dword [esp + 0x34]
jae 0x5bb679
mov ecx, eax
mov dword [esp + 0x34], ecx
jmp 0x5bb67d
mov ecx, dword [esp + 0x34]
mov edx, ecx
shl edx, 4
add edx, ecx
shr edx, 4
cmp eax, edx
ja 0x5bb6de
movzx ecx, word [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x60]
shl eax, 0x10
add eax, ecx
mov ecx, dword [esp + 0x64]
mov dword [edx], eax
mov dword [ecx], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x40]
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
call fcn.0058d7c0
add esp, 0x10
cmp edx, dword [esp + 0x3c]
ja 0x5bb6de
jb 0x5bb6cc
cmp eax, dword [esp + 0x38]
jae 0x5bb6de
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
jmp 0x5bb6ea
cmp ebx, dword [esp + 0x30]
jne 0x5bb6fa
cmp esi, dword [esp + 0x2c]
jne 0x5bb6fa
movsx eax, word [edi + 0x4c]
movsx ecx, word [edi + 0x4e]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x70]
mov ecx, 0x5f3a28
mov dword [esp + 0x28], 0xfffffffe
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
jmp 0x5bb720
mov eax, dword [ecx]
add eax, ebx
cmp eax, dword [esp + 0x30]
jne 0x5bb744
mov edx, dword [ecx + 4]
add edx, esi
cmp edx, dword [esp + 0x2c]
jne 0x5bb744
mov eax, dword [esp + 0x24]
mov dword [eax], 0x10000000
jmp 0x5bb7e9
mov ecx, dword [esp + 0x58]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x48]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
add edx, esi
push edx
push eax
mov eax, dword [edi + 0x38]
push eax
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [eax + 0x4cd0]
lea edx, [esp + 0xac]
push edx
mov dword [esp + 0x38], 0x10
call ecx
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b5c]
call eax
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x78]
add edx, esi
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x50]
add eax, edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x8c]
add edx, ebx
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x54]
add eax, edx
add esp, 0x30
cmp eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x20]
jae 0x5bb7e9
mov dword [esp + 0x34], eax
add dword [esp + 0x24], 4
add ecx, 8
cmp ecx, 0x5f3a58
mov dword [esp + 0x20], ecx
jl 0x5bb720
mov ecx, dword [esp + 0x34]
mov eax, ecx
shl eax, 4
add eax, ecx
shr eax, 4
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], eax
jmp 0x5bb820
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp dword [esp + eax*4 + 0x70], edx
ja 0x5bb8ab
mov ecx, dword [eax*8 + 0x5f3a28]
mov edx, dword [eax*8 + 0x5f3a2c]
add ecx, dword [esp + 0x4c]
add edx, dword [esp + 0x54]
and ecx, 0xffff
shl edx, 0x10
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [ecx], eax
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0058d7c0
add esp, 0x10
cmp edx, dword [esp + 0x3c]
ja 0x5bb8ab
jb 0x5bb883
cmp eax, dword [esp + 0x38]
jae 0x5bb8ab
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
mov ebx, dword [eax*8 + 0x5f3a28]
mov esi, dword [eax*8 + 0x5f3a2c]
add ebx, dword [esp + 0x4c]
add esi, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x28], eax
jmp 0x5bb8af
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, 6
mov dword [esp + 0x20], eax
jl 0x5bb820
cmp dword [esp + 0x28], 0xfffffffe
je 0x5bbafb
mov dword [esp + 0x50], 1
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x1f40]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx*4 + 0x5f3a04]
sub edx, 2
cmp esi, edx
mov dword [esp + 0x6c], ecx
jg 0x5bbafb
mov eax, dword [eax + 0x1f38]
sub eax, 2
cmp esi, eax
jl 0x5bbafb
xor edx, edx
lea ecx, [ecx*8 + 0x5f3a20]
mov dword [esp + 0x28], 0xfffffffe
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov eax, dword [ecx]
add eax, ebx
cmp eax, dword [esp + 0x30]
jne 0x5bb94a
mov ecx, dword [ecx + 4]
add ecx, esi
cmp ecx, dword [esp + 0x2c]
jne 0x5bb94a
mov dword [esp + edx*4 + 0x70], 0x10000000
jmp 0x5bb9ed
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x24]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x48]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [edi + 0x38]
add ecx, esi
push ecx
push eax
push edx
mov edx, dword [esp + 0x30]
lea eax, [edi + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
mov eax, dword [edx + 0x4cd0]
lea ecx, [esp + 0xac]
push ecx
mov dword [esp + 0x38], 0x10
call eax
mov ecx, dword [esp + 0x38]
mov edx, dword [edi + 0x28]
push ecx
mov ecx, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x44]
push 0x10
push edx
mov edx, dword [eax + ecx*4 + 0x4b5c]
call edx
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x8c]
add edx, ebx
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x54]
add eax, edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x78]
add edx, esi
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x50]
add eax, edx
add esp, 0x30
cmp eax, dword [esp + 0x34]
mov dword [esp + ecx*4 + 0x70], eax
jae 0x5bb9ed
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add edx, 1
add ecx, 8
cmp edx, 3
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
jl 0x5bb928
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x6c]
mov eax, ecx
shl eax, 4
add eax, ecx
shr eax, 4
mov dword [esp + 0x24], eax
lea eax, [edx*8 + 0x5f3a24]
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
jmp 0x5bba40
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
cmp dword [esp + edx*4 + 0x70], ecx
ja 0x5bbac7
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 4]
mov edx, dword [eax]
add ecx, dword [esp + 0x4c]
add edx, dword [esp + 0x54]
and ecx, 0xffff
shl edx, 0x10
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [ecx], eax
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0058d7c0
add esp, 0x10
cmp edx, dword [esp + 0x3c]
ja 0x5bbac7
jb 0x5bba9e
cmp eax, dword [esp + 0x38]
jae 0x5bbac7
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 4]
mov esi, dword [eax]
add ebx, dword [esp + 0x4c]
add esi, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
lea eax, [ecx + edx - 1]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x18], 8
add eax, 1
cmp eax, 3
mov dword [esp + 0x20], eax
jl 0x5bba40
cmp dword [esp + 0x28], 0xfffffffe
je 0x5bbafb
mov eax, dword [esp + 0x50]
add eax, 1
cmp eax, 0xa
mov dword [esp + 0x50], eax
jl 0x5bb8d2
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], ecx
mov ecx, 0x5f3a60
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], esi
mov dword [esp + 0x28], ecx
mov edx, dword [ecx]
lea eax, [edx + ebx]
cmp eax, dword [esp + 0x30]
jne 0x5bbb39
mov edx, dword [ecx + 4]
add edx, esi
cmp edx, dword [esp + 0x2c]
jne 0x5bbb39
mov eax, dword [esp + 0x18]
mov dword [eax], 0x10000000
jmp 0x5bbbde
mov ecx, dword [esp + 0x58]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x48]
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx + 4]
add edx, esi
push edx
push eax
mov eax, dword [edi + 0x38]
push eax
lea eax, [edi + 0x10]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [eax + 0x4cd0]
lea edx, [esp + 0xac]
push edx
mov dword [esp + 0x70], 0x10
call ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [edi + 0x28]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b5c]
call eax
mov ecx, dword [esp + 0x58]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x8c]
add edx, ebx
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x58]
add eax, edx
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x78]
add edx, esi
movsx edx, word [ecx + edx*2]
mov ecx, dword [esp + 0x48]
add eax, edx
add esp, 0x30
cmp eax, dword [esp + 0x34]
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
jae 0x5bbbde
mov dword [esp + 0x34], eax
add dword [esp + 0x18], 4
add ecx, 8
cmp ecx, 0x5f3aa0
mov dword [esp + 0x28], ecx
jl 0x5bbb14
mov ecx, dword [esp + 0x34]
mov eax, ecx
shl eax, 4
add eax, ecx
shr eax, 4
lea edx, [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], 0x5f3a64
mov dword [esp + 0x48], edx
jmp 0x5bbc20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x48]
cmp dword [ecx], eax
ja 0x5bbc96
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 4]
mov eax, dword [eax]
add eax, dword [esp + 0x54]
add edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
and edx, 0xffff
shl eax, 0x10
add eax, edx
mov edx, dword [esp + 0x64]
mov dword [ecx], eax
mov ecx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [edi]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
call fcn.0058d7c0
add esp, 0x10
cmp edx, dword [esp + 0x3c]
ja 0x5bbc96
jb 0x5bbc7b
cmp eax, dword [esp + 0x38]
jae 0x5bbc96
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
mov ebx, dword [eax - 4]
mov esi, dword [eax]
add ebx, dword [esp + 0x4c]
add esi, dword [esp + 0x54]
mov dword [esp + 0x3c], edx
jmp 0x5bbc9a
mov eax, dword [esp + 0x18]
add dword [esp + 0x48], 4
add eax, 8
cmp eax, 0x5f3aa4
mov dword [esp + 0x18], eax
jl 0x5bbc20
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x1f40]
mov eax, dword [eax + 0x1f38]
cmp esi, eax
jge 0x5bbcc9
mov esi, eax
jmp 0x5bbccf
cmp esi, ecx
jle 0x5bbccf
mov esi, ecx
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x48], ecx
mov ecx, dword [ebp + 0x18]
movzx edx, bx
mov eax, esi
shl eax, 0x10
add eax, edx
mov edx, dword [esp + 0x40]
lea ecx, [ecx + ecx*2]
add ecx, ecx
mov word [edi + 0x4c], bx
mov word [edi + 0x4e], si
movzx edx, byte [edx + 0x5f3890]
add edx, ecx
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x40]
movzx ecx, byte [ecx + 0x5f3880]
lea edx, [ecx + edx*8]
mov ecx, dword [esp + 0x1c]
lea ecx, [ecx + edx*4 + 0x37b0]
mov edx, dword [esp + 0x58]
test edx, edx
jle 0x5bbd57
add ecx, 8
mov dword [esp + 0x50], edx
lea esp, [esp]
mov edx, dword [esp + 0x44]
cmp edx, 2
mov dword [ecx - 8], eax
jl 0x5bbd3f
mov dword [ecx - 4], eax
cmp edx, 4
jne 0x5bbd49
mov dword [ecx], eax
mov dword [ecx + 4], eax
add ecx, 0x20
sub dword [esp + 0x50], 1
jne 0x5bbd30
mov edx, dword [esp + 0x58]
movsx eax, word [edi + 0x42]
mov ecx, dword [esp + 0x44]
sub esi, eax
movzx eax, word [edi + 0x40]
sub ebx, eax
mov eax, dword [esp + 0x40]
movzx edi, byte [eax + 0x5f3890]
add edi, dword [esp + 0x6c]
movzx eax, byte [eax + 0x5f3880]
shl esi, 0x10
and ebx, 0xffff
lea eax, [eax + edi*8]
mov edi, dword [esp + 0x1c]
add esi, ebx
test edx, edx
lea eax, [edi + eax*4 + 0x3930]
jle 0x5bbdbd
add eax, 8
lea ecx, [ecx]
cmp ecx, 2
mov dword [eax - 8], esi
jl 0x5bbdab
mov dword [eax - 4], esi
cmp ecx, 4
jne 0x5bbdb5
mov dword [eax], esi
mov dword [eax + 4], esi
add eax, 0x20
sub edx, 1
jne 0x5bbda0
mov ecx, dword [esp + 0x19c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2a78
mov esp, ebp
pop ebp
ret