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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x274
mov eax, dword [0x617560]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3cb0]
xor ebx, ebx
mov ecx, 1
cmp dword [esi + 0xdc0], ecx
push edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x18], eax
je 0x58d709
cmp dword [esi + 0x19c], ebx
mov dword [esp + 0x1c], ebx
je 0x58d70d
mov dword [esp + 0x1c], ecx
cmp dword [esi + 0xdd4], ebx
mov dword [esp + 0x38], ebx
mov dword [esi + 0x2124], ebx
mov byte [esi + 0x371c], bl
je 0x58d780
mov eax, dword [esi + 0xdc4]
mov edx, dword [esi + 0x1ee4]
add edx, eax
cmp dword [esi + 0x1ef8], edx
jne 0x58d780
mov edx, dword [esi + 0x1fc0]
mov al, byte [eax + edx]
cmp al, 6
je 0x58d74c
cmp al, 0x12
jne 0x58d780
mov eax, dword [esi + 0x2114]
cmp eax, 6
mov dword [esp + 0x38], ecx
je 0x58d765
cmp eax, 0x12
jne 0x58d780
cmp eax, 6
jne 0x58d771
mov dword [esi + 0x2114], 4
jmp 0x58d780
cmp eax, 0x12
jne 0x58d780
mov dword [esi + 0x2114], 7
mov eax, dword [esi + 0x2114]
cmp eax, 6
jne 0x58d7a5
call fcn.0058d380
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne 0x58d7fe
cmp dword [esi + 0x2138], ebx
jne 0x58d7bb
push esi
call fcn.00568bc0
add esp, 4
push 0x30
lea eax, [esi + 0x36f0]
push ebx
push eax
mov dword [esi + 0x2124], ebx
mov dword [esi + 0x2128], ebx
call fcn.004eaae0
mov ecx, dword [esi + 0x1ef8]
mov edx, dword [esi + 0x1fc8]
add esp, 0xc
mov word [edx + ecx*2], bx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret
mov edi, 2
cmp eax, edi
jne 0x58d85c
cmp dword [esi + 0x3cc4], ebx
mov eax, dword [esi + 0x212c]
mov dword [esi + 0x2120], ebx
je 0x58d837
push eax
push esi
call fcn.0058d640
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call fcn.0058caa0
add esp, 4
jmp 0x58e0c7
mov ecx, dword [esi + 0x3020]
mov edx, dword [esi + eax*4 + 0x4a24]
push ecx
call edx
mov eax, dword [esp + 0x1c]
add esp, 4
push eax
call fcn.0058caa0
add esp, 4
jmp 0x58e0c7
cmp eax, ecx
jne 0x58d9d0
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ecx
je 0x58d8f7
mov edx, dword [esi + 0x3020]
mov eax, dword [esi + 0x4d00]
push 0x10
push 0x10
lea ecx, [esi + 0x2720]
push ecx
push 0x20
push edx
call eax
mov ecx, dword [esi + 0x2b90]
mov edx, dword [esi + 0x2b94]
mov eax, dword [esi + 0x2b98]
mov dword [esi + 0x36fc], ecx
mov ecx, dword [esi + 0x2b9c]
mov dword [esi + 0x3704], edx
mov edx, dword [esi + 0x2ba4]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], ecx
mov dword [esi + 0x2124], edx
jne 0x58d8f7
mov edx, dword [esi + 0x4d30]
push 0x180
lea eax, [esi + 0x2820]
push eax
lea ecx, [esi + 0x19e0]
push ecx
call edx
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 3
cmp edi, 4
jge 0x58e0c7
mov ebx, edi
shl ebx, 4
lea eax, [esi + edi*4 + 0x1f58]
add ebx, 0x5e1f60
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3020]
mov ecx, edi
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
lea eax, [eax + ecx*8]
mov ecx, dword [ebx]
movsx ecx, byte [esi + ecx + 0x36c0]
movzx edx, byte [ecx + 0x5e1fcc]
push edx
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov edx, dword [esi + 0x4abc]
lea ecx, [esp + 0x48]
push ecx
push eax
mov dword [esp + 0x34], eax
call edx
add esp, 0x10
cmp dword [esi + 0x3cc4], 0
lea eax, [esp + 0x40]
push eax
je 0x58d990
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push esi
call fcn.0058d5c0
add esp, 0x14
jmp 0x58d9a5
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + edx*4 + 0x4a5c]
push ecx
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.0058c890
add dword [esp + 0x20], 4
add ebx, 0x10
add esp, 0xc
add edi, 1
cmp ebx, 0x5e1fa0
jl 0x58d923
jmp 0x58e0c7
cmp eax, ebx
jne 0x58db07
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ebx
je 0x58da6b
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x4d00]
push 0x10
push 0x10
lea edx, [esi + 0x2620]
push edx
push 0x20
push eax
call ecx
mov edx, dword [esi + 0x2b80]
mov eax, dword [esi + 0x2b84]
mov ecx, dword [esi + 0x2b88]
mov dword [esi + 0x36fc], edx
mov edx, dword [esi + 0x2b8c]
mov dword [esi + 0x3704], eax
mov eax, dword [esi + 0x2ba0]
add esp, 0x14
cmp dword [esi + 0x2134], edi
mov dword [esi + 0x370c], ecx
mov dword [esi + 0x3714], edx
mov dword [esi + 0x2124], eax
jne 0x58da6b
mov eax, dword [esi + 0x4d30]
push 0x1e0
lea ecx, [esi + 0x29a0]
push ecx
lea edx, [esi + 0x1be0]
push edx
call eax
add esp, 0xc
mov edi, dword [esi + 0x2134]
neg edi
sbb edi, edi
and edi, 0xf
cmp edi, 0x10
jge 0x58e0c7
lea ebx, [esi + edi*4 + 0x1f68]
jmp 0x58da90
movzx eax, word [edi*2 + 0x5e2188]
mov edx, dword [ebx]
add eax, dword [esi + 0x3020]
mov ecx, dword [edi*4 + 0x5e1f60]
movsx ecx, byte [ecx + esi + 0x36c0]
and dl, 6
cmp dl, 2
jne 0x58dac4
movzx edx, byte [eax - 0x1d]
imul edx, edx, 0x1010101
mov dword [eax - 0x1c], edx
cmp dword [esi + 0x3cc4], 0
je 0x58dadb
push ecx
push edi
push eax
push esi
call fcn.0058d540
add esp, 0x10
jmp 0x58dae8
push eax
mov eax, dword [esi + ecx*4 + 0x4a8c]
call eax
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
push edi
push esi
call fcn.0058c700
add edi, 1
add esp, 0xc
add ebx, 4
cmp edi, 0x10
jl 0x58da90
jmp 0x58e0c7
cmp dword [esi + 0x2138], ebx
mov dword [esp + 0x28], ebx
jne 0x58db1c
push esi
call fcn.00568bc0
add esp, 4
cmp dword [esi + 0x3cc4], ebx
je 0x58dc7b
cmp dword [esi + 0x2120], ebx
je 0x58dbf0
lea edx, [esi + 0x19e0]
xor edi, edi
mov ebx, 0x5e1f68
mov dword [esp + 0x10], edx
mov eax, edi
sar eax, 1
add eax, eax
add eax, eax
add eax, eax
mov edx, eax
mov ecx, edi
and ecx, 1
add ecx, ecx
add ecx, ecx
shl edx, 5
add edx, dword [esi + 0x3020]
add ecx, ecx
shl eax, 4
add eax, ecx
add eax, dword [esi + 0x3008]
add edx, ecx
mov ecx, dword [esi + 0x4d8c]
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call ecx
mov ecx, dword [esp + 0x1c]
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
mov edx, dword [ecx + eax*8]
or edx, dword [ecx + eax*8 + 4]
jne 0x58dbe9
add eax, 1
cmp eax, 0x10
jl 0x58db90
xor edx, edx
mov ecx, dword [ebx - 8]
add dword [esp + 0x10], 0x80
mov eax, edx
imul eax, eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov ecx, dword [ebx]
mov word [esi + ecx + 0x36f0], ax
mov ecx, edi
shl edx, cl
add ebx, 0x10
add edi, 1
or dword [esi + 0x2124], edx
cmp ebx, 0x5e1fa8
jl 0x58db45
jmp 0x58e0c7
mov edx, 1
jmp 0x58dba3
xor ebx, ebx
lea edi, [esi + 0x1bf0]
jmp 0x58dc00
movzx edx, word [ebx*2 + 0x5e2188]
movzx ecx, byte [ebx + 0x5e2178]
add edx, dword [esi + 0x3020]
add ecx, dword [esi + 0x3008]
push edx
mov edx, dword [esi + 0x4d90]
lea eax, [edi - 0x10]
push ecx
push eax
call edx
mov eax, dword [edi - 8]
or eax, dword [edi + 8]
mov ecx, dword [edi - 4]
or ecx, dword [edi + 0xc]
or eax, dword [edi]
or ecx, dword [edi + 4]
or eax, dword [edi - 0x10]
or ecx, dword [edi - 0xc]
add esp, 0xc
or eax, ecx
je 0x58dc4e
mov eax, 1
jmp 0x58dc50
xor eax, eax
mov ecx, dword [ebx*4 + 0x5e1f60]
mov byte [ecx + esi + 0x36f0], al
mov ecx, ebx
sar ecx, 2
shl eax, cl
add ebx, 1
add edi, 0x20
or dword [esi + 0x2124], eax
cmp ebx, 0x10
jl 0x58dc00
jmp 0x58e0c7
cmp dword [esi + 0x2120], ebx
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x3008]
push eax
push ecx
je 0x58de64
mov eax, dword [esi + 0x4d74]
xor edx, edx
cmp dword [esi + 0x1f10], ebx
sete dl
and dword [esp + 0x24], edx
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
add ecx, ecx
add ecx, ecx
add dword [esi + 0xdb4], ecx
lea edx, [esi + 0x19e0]
add esp, 0xc
xor ebx, ebx
lea edi, [esp + 0x70]
mov dword [esp + 0x10], edx
cmp dword [esi + 0x1f14], 0
je 0x58dcf9
mov edx, dword [esi + 0x4db4]
push 0x40
lea eax, [esi + 0xd30]
push eax
lea ecx, [esi + 0xbb0]
push ecx
push edi
call edx
add esp, 0x10
mov edx, dword [esp + 0x18]
push ebx
push 0
mov eax, esi
call fcn.0058c6b0
add esp, 8
test eax, eax
je 0x58dd5f
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d84]
push edi
push eax
call ecx
add esp, 8
cmp dword [esp + 0x1c], 0
je 0x58dd50
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dc0]
push edx
call eax
add dword [esp + 0x2c], eax
add esp, 4
cmp eax, 4
jl 0x58dd5f
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x2124], edx
jmp 0x58dd5f
mov eax, 1
mov ecx, ebx
shl eax, cl
or dword [esi + 0x2124], eax
add dword [esp + 0x10], 0x80
add ebx, 1
add edi, 0x80
cmp ebx, 4
jl 0x58dcd4
cmp dword [esp + 0x28], 6
jge 0x58ddab
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x58ddab
mov dword [esi + 0x2124], eax
mov dword [esi + 0x36fc], eax
mov dword [esi + 0x3704], eax
mov dword [esi + 0x370c], eax
mov dword [esi + 0x3714], eax
jmp 0x58e0c7
lea ecx, [esp + 0x70]
xor eax, eax
xor ebx, ebx
mov edi, 0x5e1f68
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, 1
mov ecx, ebx
shl edx, cl
test dword [esi + 0x2124], edx
je 0x58de30
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xa58]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esi + 0x4da8]
push ecx
push edx
call eax
mov ecx, dword [esp + 0x1c]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d70]
lea edx, [ecx + edx*8]
push edx
call eax
mov ecx, dword [edi - 8]
mov eax, 0x101
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
add esp, 0x14
mov word [esi + edx + 0x36f0], ax
xor eax, eax
jmp 0x58de45
mov ecx, dword [edi - 8]
mov word [ecx + esi + 0x36f0], ax
mov edx, dword [edi]
mov word [esi + edx + 0x36f0], ax
add dword [esp + 0x10], 0x80
add edi, 0x10
add ebx, 1
cmp edi, 0x5e1fa8
jl 0x58ddc0
jmp 0x58e0c7
mov eax, dword [esi + 0x4d60]
lea edx, [esp + 0x78]
push edx
call eax
mov ecx, dword [esi + 0x1f14]
shl ecx, 4
lea edx, [esp + 0x7c]
add esp, 0xc
add dword [esi + 0xdb0], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], 0x5e1f60
lea eax, [esi + 0x1be0]
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ebx, [ebx]
cmp dword [esi + 0x1f14], 0
je 0x58dee5
mov ecx, dword [esi + 0x4db4]
push 0x10
lea edx, [esi + 0xcb0]
push edx
lea eax, [esi + 0xab0]
push eax
push edi
call ecx
add esp, 0x10
cmp dword [esi + 0x1f10], 0
je 0x58df0d
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
lea eax, [ebx + edx*4]
push eax
push 0
push 2
push ecx
push 1
push edi
push esi
call fcn.0057fe90
add esp, 0x1c
jmp 0x58df32
mov eax, dword [esp + 0x18]
mov edx, dword [esi + 0xa90]
mov ecx, dword [esi + 0xa78]
shl eax, 5
add edx, eax
push edx
mov edx, dword [esi + 0x4d9c]
add ecx, eax
push ecx
push edi
call edx
add esp, 0xc
test eax, eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov byte [esi + edx + 0x36f0], al
je 0x58df93
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x4d88]
push edi
push eax
call ecx
mov edx, dword [esp + 0x20]
mov eax, dword [esi + 0xa48]
mov ecx, dword [esi + 0x4dac]
push edx
push eax
push edi
call ecx
add esp, 0x14
cmp dword [esp + 0x1c], 0
je 0x58df8b
cmp dword [esp + 0x30], 6
jge 0x58df8b
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x4dbc]
push edx
call eax
add esp, 4
add dword [esp + 0x30], eax
mov dword [esp + 0x34], 1
add dword [esp + 0x10], 0x20
add dword [esp + 0x14], 4
add ebx, 1
add edi, 0x20
cmp ebx, 4
jl 0x58dec0
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], eax
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x58dfef
cmp eax, 4
jge 0x58dfdc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov word [esi + ecx + 0x36f0], dx
mov eax, dword [eax + 8]
mov word [eax + esi + 0x36f0], dx
jmp 0x58e032
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
or dword [esi + 0x2124], eax
jmp 0x58e032
cmp dword [esp + 0x34], edx
je 0x58e032
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov edx, ebx
sar edx, 1
shl edx, 5
mov eax, ebx
and eax, 1
push ecx
mov ecx, dword [esi + 0x3020]
add edx, eax
mov eax, dword [esi + 0x4d58]
lea edx, [ecx + edx*8]
push edx
call eax
mov edx, 1
mov ecx, ebx
shl edx, cl
add esp, 8
or dword [esi + 0x2124], edx
xor edx, edx
mov ecx, dword [esp + 0x14]
add dword [esp + 0x2c], 1
cmp ecx, 0x5e1fa0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jl 0x58dea0
cmp dword [esp + 0x1c], edx
je 0x58e0c7
cmp dword [esp + 0x28], 6
jge 0x58e080
mov dword [esi + 0x2124], edx
mov dword [esi + 0x36fc], edx
mov dword [esi + 0x3704], edx
mov dword [esi + 0x370c], edx
mov dword [esi + 0x3714], edx
jmp 0x58e0c7
xor edi, edi
lea ebx, [esp + 0x70]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esi + 0x2124], eax
je 0x58e0b9
mov eax, dword [esi + 0x3020]
sar ecx, 1
shl ecx, 5
mov edx, edi
and edx, 1
add ecx, edx
mov edx, dword [esi + 0x4d58]
lea ecx, [eax + ecx*8]
push ebx
push ecx
call edx
add esp, 8
add edi, 1
add ebx, 0x80
cmp edi, 4
jl 0x58e086
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x58e0e0
cmp eax, 1
je 0x58e0e0
cmp eax, 2
je 0x58e0e0
cmp eax, 3
jne 0x58e11b
cmp dword [esi + 0x3cc4], 0
mov edi, dword [esi + 0x2130]
je 0x58e0f8
push edi
push esi
call fcn.0058d480
jmp 0x58e118
mov eax, dword [esi + 0x3024]
mov ecx, dword [esi + edi*4 + 0x4a40]
push eax
call ecx
mov edx, dword [esi + 0x3028]
mov eax, dword [esi + edi*4 + 0x4a40]
push edx
call eax
add esp, 8
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x58e13b
cmp eax, 1
je 0x58e13b
cmp eax, 2
je 0x58e13b
cmp eax, 3
je 0x58e13b
mov eax, 1
jmp 0x58e13d
xor eax, eax
mov ecx, dword [esi + 0x3cb4]
push ecx
push eax
push esi
call fcn.0058ce70
add esp, 0xc
cmp dword [esi + 0x78], 0
je 0x58e173
movzx eax, byte [esi + 0x371e]
movzx edx, byte [esi + 0x371d]
movzx ecx, byte [esi + 0x371c]
add eax, eax
or eax, edx
add eax, eax
or eax, ecx
jmp 0x58e177
mov eax, dword [esp + 0x3c]
mov edx, dword [esi + 0x1ef8]
mov ecx, dword [esi + 0x1fc8]
shl eax, 4
or ax, word [esi + 0x2128]
shl ax, 4
or ax, word [esi + 0x2124]
cmp dword [esp + 0x38], 0
mov word [ecx + edx*2], ax
jne 0x58e205
cmp dword [esi + 0x2114], 4
jne 0x58e1e4
cmp dword [esi + 0x2118], 0x10
jne 0x58e1e4
mov edx, dword [esi + 0x2124]
or edx, dword [esi + 0x2128]
jne 0x58e1e4
mov eax, dword [esi + 0x37b0]
cmp eax, dword [esi + 0x3c90]
jne 0x58e1e4
cmp byte [esi + 0x372c], 0
jne 0x58e1e4
mov dword [esi + 0x2114], 6
cmp dword [esi + 0x2114], 7
jne 0x58e205
mov ecx, dword [esi + 0x2124]
or ecx, dword [esi + 0x2128]
jne 0x58e205
mov dword [esi + 0x2114], 0x12
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3dc3
mov esp, ebp
pop ebp
ret