Function at 0x58ce40
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 0x58ce89
cmp dword [esi + 0x19c], ebx
mov dword [esp + 0x1c], ebx
je 0x58ce8d
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 0x58cf00
mov eax, dword [esi + 0xdc4]
mov edx, dword [esi + 0x1ee4]
add edx, eax
cmp dword [esi + 0x1ef8], edx
jne 0x58cf00
mov edx, dword [esi + 0x1fc0]
mov al, byte [eax + edx]
cmp al, 6
je 0x58cecc
cmp al, 0x12
jne 0x58cf00
mov eax, dword [esi + 0x2114]
cmp eax, 6
mov dword [esp + 0x38], ecx
je 0x58cee5
cmp eax, 0x12
jne 0x58cf00
cmp eax, 6
jne 0x58cef1
mov dword [esi + 0x2114], 4
jmp 0x58cf00
cmp eax, 0x12
jne 0x58cf00
mov dword [esi + 0x2114], 7
mov eax, dword [esi + 0x2114]
cmp eax, 6
jne 0x58cf25
call fcn.0058cb00
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004e3543
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne 0x58cf7e
cmp dword [esi + 0x2138], ebx
jne 0x58cf3b
push esi
call fcn.00568340
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.004ea260
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.004e3543
mov esp, ebp
pop ebp
ret
mov edi, 2
cmp eax, edi
jne 0x58cfdc
cmp dword [esi + 0x3cc4], ebx
mov eax, dword [esi + 0x212c]
mov dword [esi + 0x2120], ebx
je 0x58cfb7
push eax
push esi
call fcn.0058cdc0
mov eax, dword [esp + 0x20]
add esp, 8
push eax
call fcn.0058c220
add esp, 4
jmp 0x58d847
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.0058c220
add esp, 4
jmp 0x58d847
cmp eax, ecx
jne 0x58d150
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ecx
je 0x58d077
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 0x58d077
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 0x58d847
mov ebx, edi
shl ebx, 4
lea eax, [esi + edi*4 + 0x1f58]
add ebx, 0x5e1f48
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 + 0x5e1fb4]
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 0x58d110
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edi
push edx
push esi
call fcn.0058cd40
add esp, 0x14
jmp 0x58d125
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.0058c010
add dword [esp + 0x20], 4
add ebx, 0x10
add esp, 0xc
add edi, 1
cmp ebx, 0x5e1f88
jl 0x58d0a3
jmp 0x58d847
cmp eax, ebx
jne 0x58d287
cmp dword [esi + 0x2134], ebx
mov dword [esi + 0x2120], ebx
je 0x58d1eb
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 0x58d1eb
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 0x58d847
lea ebx, [esi + edi*4 + 0x1f68]
jmp 0x58d210
movzx eax, word [edi*2 + 0x5e2170]
mov edx, dword [ebx]
add eax, dword [esi + 0x3020]
mov ecx, dword [edi*4 + 0x5e1f48]
movsx ecx, byte [ecx + esi + 0x36c0]
and dl, 6
cmp dl, 2
jne 0x58d244
movzx edx, byte [eax - 0x1d]
imul edx, edx, 0x1010101
mov dword [eax - 0x1c], edx
cmp dword [esi + 0x3cc4], 0
je 0x58d25b
push ecx
push edi
push eax
push esi
call fcn.0058ccc0
add esp, 0x10
jmp 0x58d268
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.0058be80
add edi, 1
add esp, 0xc
add ebx, 4
cmp edi, 0x10
jl 0x58d210
jmp 0x58d847
cmp dword [esi + 0x2138], ebx
mov dword [esp + 0x28], ebx
jne 0x58d29c
push esi
call fcn.00568340
add esp, 4
cmp dword [esi + 0x3cc4], ebx
je 0x58d3fb
cmp dword [esi + 0x2120], ebx
je 0x58d370
lea edx, [esi + 0x19e0]
xor edi, edi
mov ebx, 0x5e1f50
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 0x58d369
add eax, 1
cmp eax, 0x10
jl 0x58d310
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, 0x5e1f90
jl 0x58d2c5
jmp 0x58d847
mov edx, 1
jmp 0x58d323
xor ebx, ebx
lea edi, [esi + 0x1bf0]
jmp 0x58d380
movzx edx, word [ebx*2 + 0x5e2170]
movzx ecx, byte [ebx + 0x5e2160]
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 0x58d3ce
mov eax, 1
jmp 0x58d3d0
xor eax, eax
mov ecx, dword [ebx*4 + 0x5e1f48]
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 0x58d380
jmp 0x58d847
cmp dword [esi + 0x2120], ebx
mov eax, dword [esi + 0x3020]
mov ecx, dword [esi + 0x3008]
push eax
push ecx
je 0x58d5e4
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 0x58d479
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.0058be30
add esp, 8
test eax, eax
je 0x58d4df
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 0x58d4d0
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 0x58d4df
mov edx, 1
mov ecx, ebx
shl edx, cl
or dword [esi + 0x2124], edx
jmp 0x58d4df
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 0x58d454
cmp dword [esp + 0x28], 6
jge 0x58d52b
xor eax, eax
cmp dword [esp + 0x1c], eax
je 0x58d52b
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 0x58d847
lea ecx, [esp + 0x70]
xor eax, eax
xor ebx, ebx
mov edi, 0x5e1f50
mov dword [esp + 0x10], ecx
lea esp, [esp]
mov edx, 1
mov ecx, ebx
shl edx, cl
test dword [esi + 0x2124], edx
je 0x58d5b0
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 0x58d5c5
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, 0x5e1f90
jl 0x58d540
jmp 0x58d847
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], 0x5e1f48
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 0x58d665
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 0x58d68d
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.0057f610
add esp, 0x1c
jmp 0x58d6b2
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 0x58d713
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 0x58d70b
cmp dword [esp + 0x30], 6
jge 0x58d70b
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 0x58d640
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], eax
xor edx, edx
cmp dword [esp + 0x1c], edx
je 0x58d76f
cmp eax, 4
jge 0x58d75c
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 0x58d7b2
mov ecx, dword [esp + 0x2c]
mov eax, 1
shl eax, cl
or dword [esi + 0x2124], eax
jmp 0x58d7b2
cmp dword [esp + 0x34], edx
je 0x58d7b2
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, 0x5e1f88
mov eax, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edi
jl 0x58d620
cmp dword [esp + 0x1c], edx
je 0x58d847
cmp dword [esp + 0x28], 6
jge 0x58d800
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 0x58d847
xor edi, edi
lea ebx, [esp + 0x70]
mov eax, 1
mov ecx, edi
shl eax, cl
test dword [esi + 0x2124], eax
je 0x58d839
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 0x58d806
mov eax, dword [esi + 0x2114]
test eax, eax
je 0x58d860
cmp eax, 1
je 0x58d860
cmp eax, 2
je 0x58d860
cmp eax, 3
jne 0x58d89b
cmp dword [esi + 0x3cc4], 0
mov edi, dword [esi + 0x2130]
je 0x58d878
push edi
push esi
call fcn.0058cc00
jmp 0x58d898
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 0x58d8bb
cmp eax, 1
je 0x58d8bb
cmp eax, 2
je 0x58d8bb
cmp eax, 3
je 0x58d8bb
mov eax, 1
jmp 0x58d8bd
xor eax, eax
mov ecx, dword [esi + 0x3cb4]
push ecx
push eax
push esi
call fcn.0058c5f0
add esp, 0xc
cmp dword [esi + 0x78], 0
je 0x58d8f3
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 0x58d8f7
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 0x58d985
cmp dword [esi + 0x2114], 4
jne 0x58d964
cmp dword [esi + 0x2118], 0x10
jne 0x58d964
mov edx, dword [esi + 0x2124]
or edx, dword [esi + 0x2128]
jne 0x58d964
mov eax, dword [esi + 0x37b0]
cmp eax, dword [esi + 0x3c90]
jne 0x58d964
cmp byte [esi + 0x372c], 0
jne 0x58d964
mov dword [esi + 0x2114], 6
cmp dword [esi + 0x2114], 7
jne 0x58d985
mov ecx, dword [esi + 0x2124]
or ecx, dword [esi + 0x2128]
jne 0x58d985
mov dword [esi + 0x2114], 0x12
mov ecx, dword [esp + 0x27c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004e3543
mov esp, ebp
pop ebp
ret