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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x20], eax
push edi
mov dword [ebp - 0x30], eax
setne byte [ebp - 1]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x40], eax
mov byte [ebp - 2], al
mov eax, dword [ecx]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], edi
test edi, edi
jne 0x58d93a
push ecx
call fcn.0055c750
mov ecx, dword [ebp + 8]
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
push ebx
push esi
mov esi, dword [ebp + 0xc]
test byte [esi + 0x2a], 0x20
movsx eax, word [esi + 0x22]
mov dword [ebp - 0x3c], eax
jne 0x58d95c
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 1
jmp 0x58d983
mov edx, dword [esi + 8]
mov dword [ebp - 0x10], edx
test edx, edx
je 0x58d97c
mov eax, dword [edx + 0x38]
and al, 3
cmp al, 2
je 0x58d976
mov edx, dword [edx + 0x14]
test edx, edx
jne 0x58d966
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
movzx edx, word [edx + 0x32]
mov dword [ebp - 0x20], edx
xor ebx, ebx
test eax, eax
jle 0x58daf2
xor edx, edx
mov dword [ebp - 0x28], edx
jmp 0x58d99a
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
movsx eax, word [esi + 0x20]
cmp ebx, eax
je 0x58da78
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x58d9b7
cmp dword [eax + ebx*4], 0
jl 0x58da78
mov eax, dword [esi + 4]
movzx esi, byte [edx + eax + 0xc]
test esi, esi
je 0x58da78
mov cl, byte [ebp + 0x28]
cmp cl, 0xa
je 0x58d9fa
movzx esi, cl
cmp esi, 5
jne 0x58d9e4
cmp dword [edx + eax + 4], 0
mov eax, 2
cmove esi, eax
mov ecx, dword [ebp + 8]
lea eax, [esi - 1]
cmp eax, 3
ja case.default.0x58d9f3
jmp dword [eax*4 + 0x58ed50]
cmp esi, 0xa
jne 0x58d9d2
mov esi, 2
jmp 0x58d9e4
mov eax, dword [ecx + 0x1a0]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
push dword [edx + eax]
push dword [ecx]
push str._s._s
push dword [ebp - 0x2c]
call fcn.005933c0
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0x1c]
inc eax
add eax, ebx
push eax
push esi
push 0x513
push 0x49
push edi
call fcn.005a37e0
mov eax, dword [edi]
add esp, 0x2c
mov esi, dword [ebp + 8]
cmp byte [eax + 0x45], 0
jne 0x58da7b
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 1
jmp 0x58da7b
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x2c]
inc eax
add eax, ebx
push eax
push 0x22
push edi
call fcn.005a3710
add esp, 0x10
mov esi, dword [ebp + 8]
add dword [ebp - 0x28], 0x10
inc ebx
mov edx, dword [ebp - 0x28]
cmp ebx, dword [ebp - 0x3c]
jl 0x58d994
jmp 0x58daf5
mov esi, dword [ebp + 0x1c]
inc esi
add esi, ebx
push esi
push 0x23
push edi
call fcn.005a36a0
mov ecx, dword [ebp - 0x28]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 4]
mov esi, dword [ebp + 8]
push dword [ecx + eax + 4]
push esi
call fcn.00588cf0
mov ecx, dword [edi + 0x20]
add esp, 0x18
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x58dad1
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x58dae3
mov eax, 0x68444c
mov dword [eax + 8], edx
jmp 0x58da7b
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x58da7b
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0xc], edx
test edx, edx
je 0x58de29
mov eax, dword [ebp - 0x2c]
test dword [eax + 0x18], 0x2000
jne 0x58de29
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [esi + 0x64], eax
mov al, byte [ebp + 0x28]
cmp al, 0xa
je 0x58db2c
movzx eax, al
mov dword [ebp - 0x1c], eax
jmp 0x58db33
mov dword [ebp - 0x1c], 2
xor ebx, ebx
mov dword [ebp - 0x38], ebx
cmp dword [edx], ebx
jle 0x58de29
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x34], 0
mov eax, dword [edx + 4]
mov esi, dword [ecx + eax]
mov dword [ebp - 8], esi
je 0x58dba6
mov edi, dword [ebp + 0x34]
xorps xmm0, xmm0
xor al, al
mov dword [ebp - 0x58], 0
movq qword [ebp - 0x60], xmm0
mov dword [ebp - 0x58], edi
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x5c], al
movups xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x6c], 0x561c10
test esi, esi
je 0x58db96
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.005bc3b0
mov al, byte [ebp - 0x5c]
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
cmp byte [ebp + 0x24], 0
jne 0x58db9e
and al, 0xfd
test al, al
je 0x58de17
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x28], ecx
mov edx, dword [ecx + 0x74]
mov dword [ebp - 0x48], edx
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea eax, [edx - 1]
test edx, eax
jne 0x58dc8c
mov ebx, dword [ecx + 0x78]
lea eax, [edx*8 + 4]
mov esi, dword [ecx]
xor edx, edx
mov dword [ebp - 0x3c], eax
test ebx, ebx
jne 0x58dbe5
push edx
push eax
push esi
call fcn.00586310
add esp, 0xc
jmp 0x58dc28
cmp ebx, dword [esi + 0x120]
jb 0x58dc1c
cmp ebx, dword [esi + 0x124]
jae 0x58dc1c
movzx eax, word [esi + 0x104]
cdq
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp eax, edx
ja 0x58dc17
jb 0x58dc10
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x4c]
ja 0x58dc1a
mov eax, ebx
mov dword [ebp - 0x18], eax
jmp 0x58dc2e
mov eax, dword [ebp - 0x3c]
xor edx, edx
push edx
push eax
push ebx
push esi
call fcn.00566440
add esp, 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x58dc80
test ebx, ebx
je 0x58dc80
test esi, esi
je 0x58dc74
cmp dword [esi + 0x1c8], eax
je 0x58dc4e
push ebx
push esi
call fcn.00570a50
add esp, 8
jmp 0x58dc7d
cmp ebx, dword [esi + 0x120]
jb 0x58dc74
cmp ebx, dword [esi + 0x124]
jae 0x58dc74
mov eax, dword [esi + 0x11c]
mov dword [ebx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x58dc80
push ebx
call fcn.00556b90
add esp, 4
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 8]
mov dword [ecx + 0x78], ebx
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x58dc9a
mov dword [eax + edx*4], 0xffffffff
or ebx, 0xffffffff
sub ebx, edx
push 0x10
push ebx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
call fcn.0058adb0
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
cmp ecx, 4
jne 0x58dd16
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58dcdb
push 0
push dword [ebp + 0x2c]
push 0
push 0xd
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58ddef
mov edx, dword [ebp + 0x2c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x58ddef
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ebx, dword [ebx + eax + 4]
test ebx, ebx
jne 0x58dd2c
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov edx, dword [ebp + 8]
cmp ecx, 5
mov eax, 2
cmove ecx, eax
mov dword [ebp - 0x1c], ecx
mov esi, dword [edx + 8]
test esi, esi
jne 0x58dd55
push edx
call fcn.0055c750
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp + 8]
mov esi, eax
cmp ecx, 2
jne 0x58dd6e
mov eax, dword [edx + 0x1a0]
mov ecx, edx
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
cmp dword [eax + 0x58], edx
jg 0x58dd90
push 0
push ecx
push 0x113
push 0x4a
push esi
call fcn.0056e710
add esp, 0x14
mov edx, eax
jmp 0x58ddc9
mov edi, dword [ebp - 0x1c]
lea eax, [edx + 1]
mov dword [esi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [esi + 4]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [ebp - 0x24]
mov word [eax + ecx*4], 0x4a
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0x113
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
push 0
push ebx
push edx
push esi
call fcn.005a3b60
mov eax, dword [esi]
add esp, 0x10
mov ebx, dword [ebp - 0x3c]
cmp byte [eax + 0x45], 0
jne 0x58ddef
mov eax, dword [esi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 4]
mov byte [eax + ecx*4 - 0x11], 3
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x58de07
lea eax, [ebx*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0x14]
dec eax
mov ebx, dword [ebp - 0x38]
mov dword [edx + 0x60], eax
mov edx, dword [ebp - 0xc]
inc ebx
add ecx, 0x18
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], ecx
cmp ebx, dword [edx]
jl 0x58db45
cmp byte [ebp + 0x24], 0
je 0x58e1a0
cmp dword [ebp - 0x10], 0
jne 0x58e1a0
mov ebx, dword [edi + 0x18]
mov esi, dword [ebx + 0x74]
lea eax, [esi + 1]
mov dword [ebx + 0x74], eax
lea eax, [esi - 1]
test esi, eax
jne 0x58de6a
push 0
lea eax, [esi*8 + 4]
push eax
push dword [ebx + 0x78]
push dword [ebx]
call fcn.00586540
add esp, 0x10
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x58de78
mov dword [eax + esi*4], 0xffffffff
mov eax, dword [ebp + 0xc]
or ebx, 0xffffffff
mov cl, byte [ebp + 0x28]
sub ebx, esi
movzx esi, byte [eax + 0x2b]
cmp cl, 0xa
je 0x58de91
movzx esi, cl
jmp 0x58de9c
cmp esi, 0xa
mov edx, 2
cmove esi, edx
cmp byte [ebp - 1], 0
je 0x58df0e
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58dec1
push dword [ebp + 0x20]
push ebx
push dword [ebp + 0x1c]
push 0x25
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58def2
mov edx, dword [ebp + 0x1c]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x20]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x58df08
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov cl, byte [ebp + 0x28]
mov eax, dword [ebp + 0xc]
cmp esi, 5
jne 0x58df91
cmp cl, 5
je 0x58df91
mov eax, dword [eax + 8]
test eax, eax
je 0x58df91
nop
mov cl, byte [eax + 0x36]
cmp cl, 4
je 0x58df36
cmp cl, 3
je 0x58df36
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x58df20
jmp 0x58df91
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x30], edx
cmp dword [eax + 0x58], edx
jg 0x58df5a
push 0
push 0
push 0
push 0xd
push edi
call fcn.0056e710
add esp, 0x14
mov dword [ebp - 0x30], eax
jmp 0x58df91
lea eax, [edx + 1]
mov dword [edi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
mov edx, dword [ebp + 0x14]
cmp dword [eax + 0x58], ecx
jg 0x58dfb1
push dword [ebp + 0x1c]
push ebx
push edx
push 0x21
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58dfdf
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp + 0x1c]
mov word [eax + ecx*4], 0x21
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [esi - 1]
cmp eax, 4
ja case.default.0x58dfeb
jmp dword [eax*4 + 0x58ed60]
mov eax, dword [ebp - 0x2c]
xor esi, esi
test dword [eax + 0x18], 0x40000
je 0x58e018
push esi
push esi
push 0x6d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005a0070
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x58e051
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x80000
je 0x58e091
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx + 0x40]
push dword [ecx]
add eax, 0x38
push eax
call fcn.0056a2d0
add esp, 0xc
test eax, eax
je 0x58e048
cmp dword [eax + 8], 0
jne 0x58e051
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x10], 0
je 0x58e08e
mov edx, dword [ebp + 8]
mov ecx, edx
push 0xffffffffffffffff
push 1
push 5
mov eax, dword [edx + 0x1a0]
test eax, eax
push 0
push 1
push dword [ebp + 0x1c]
cmovne ecx, eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov byte [ecx + 0x14], 1
push esi
push dword [ebp + 0xc]
push edx
call fcn.0058ef90
add esp, 0x2c
mov dword [ebp - 0x34], 1
jmp 0x58e0ea
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 8], 0
je 0x58e0bf
mov eax, dword [edx + 0x1a0]
mov ecx, edx
push 0xffffffffffffffff
push 0
push dword [ebp + 0x18]
test eax, eax
push dword [ebp + 0x14]
cmovne ecx, eax
push esi
push edx
mov byte [ecx + 0x14], 1
call fcn.0058f300
add esp, 0x18
mov dword [ebp - 0x34], 1
jmp 0x58e0ea
push dword [ebp + 0x2c]
push edi
call fcn.005aad60
add esp, 8
jmp 0x58e0ea
mov esi, 2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0059ac90
add esp, 0xc
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x58e102
lea eax, [ebx*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
mov esi, dword [ebp - 0x30]
dec eax
mov dword [edx + 0x60], eax
test esi, esi
je 0x58e1a0
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x40], ebx
cmp dword [eax + 0x58], ebx
jg 0x58e138
push 0
push 0
push 0
push 0xd
push edi
call fcn.0056e710
add esp, 0x14
mov dword [ebp - 0x40], eax
jmp 0x58e16f
lea eax, [ebx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, esi
mov edx, dword [edi + 0x20]
test esi, esi
jns 0x58e185
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x58e194
mov eax, 0x68444c
jmp 0x58e19d
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 0
mov esi, dword [ecx + 8]
mov dword [ebp - 8], esi
test esi, esi
je 0x58eca1
mov ebx, dword [ebp + 0x10]
xor eax, eax
nop dword [eax]
cmp dword [ebx + eax*4], 0
je 0x58ec8f
cmp byte [ebp - 2], 0
jne 0x58e1e3
mov eax, dword [ebp + 0x1c]
inc eax
push eax
push ecx
push edi
call fcn.0059f790
add esp, 0xc
mov byte [ebp - 2], 1
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x48], edx
mov ecx, dword [edx + 0x74]
mov dword [ebp - 0x3c], ecx
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea eax, [ecx - 1]
test ecx, eax
jne 0x58e319
mov ebx, dword [edx + 0x78]
lea ecx, [ecx*8 + 4]
mov esi, dword [edx]
xor eax, eax
mov dword [ebp - 0x4c], eax
test ebx, ebx
jne 0x58e227
push eax
push ecx
push esi
call fcn.00586310
mov edx, eax
add esp, 0xc
mov dword [ebp - 0x28], edx
jmp 0x58e264
cmp ebx, dword [esi + 0x120]
jb 0x58e253
cmp ebx, dword [esi + 0x124]
jae 0x58e253
movzx eax, word [esi + 0x104]
cdq
cmp dword [ebp - 0x4c], edx
ja 0x58e251
jb 0x58e24a
cmp ecx, eax
ja 0x58e251
mov edx, ebx
mov dword [ebp - 0x28], edx
jmp 0x58e264
xor eax, eax
push eax
push ecx
push ebx
push esi
call fcn.00566440
add esp, 0x10
mov dword [ebp - 0x28], eax
mov edx, eax
test edx, edx
jne 0x58e307
test ebx, ebx
je 0x58e307
test esi, esi
je 0x58e2b2
cmp dword [esi + 0x1c8], edx
je 0x58e28c
push ebx
push esi
call fcn.00570a50
add esp, 8
jmp 0x58e307
cmp ebx, dword [esi + 0x120]
jb 0x58e2b2
cmp ebx, dword [esi + 0x124]
jae 0x58e2b2
mov eax, dword [esi + 0x11c]
mov dword [ebx], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], ebx
jmp 0x58e307
cmp dword [0x671b20], 0
je 0x58e2fd
mov eax, dword [0x6840d8]
test eax, eax
je 0x58e2ce
push eax
call dword [0x671b78]
add esp, 4
push ebx
call dword [0x671b54]
sub dword [0x684158], eax
dec dword [0x68417c]
push ebx
call dword [0x671b4c]
mov eax, dword [0x6840d8]
add esp, 8
test eax, eax
je 0x58e307
push eax
call dword [0x671b80]
jmp 0x58e304
push ebx
call dword [0x671b4c]
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
mov esi, dword [ebp - 8]
mov ebx, dword [ebp + 0x10]
mov dword [edx + 0x78], eax
mov eax, dword [edx + 0x78]
test eax, eax
je 0x58e327
mov dword [eax + ecx*4], 0xffffffff
or eax, 0xffffffff
sub eax, ecx
cmp dword [esi + 0x24], 0
mov dword [ebp - 0x18], eax
je 0x58e3eb
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi + 0x20]
mov edx, dword [ebx + eax*4]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x58e35c
push 0
push edx
push 0
push 0x4e
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58e38f
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0x4e
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
inc eax
mov ebx, dword [ecx]
mov dword [ecx + 0x64], eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x58e3b7
push 0
push 0
push eax
push ebx
call fcn.00568fd0
mov ecx, dword [ebp + 8]
add esp, 0x10
mov esi, eax
jmp 0x58e3b9
xor esi, esi
cmp byte [ebx + 0x45], 0
jne 0x58e3ce
push 0x10
push dword [ebp - 0x18]
push esi
push ecx
call fcn.0058aae0
add esp, 0x10
test esi, esi
je 0x58e3dc
push esi
push ebx
call fcn.0058a9b0
add esp, 8
mov ebx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ebx + 0x64], 0
jmp 0x58e3ee
mov ebx, dword [ebp + 8]
movzx ecx, word [esi + 0x34]
mov edx, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x40]
mov dword [ebp - 0x14], esi
cmp ecx, edx
jg 0x58e40c
lea eax, [esi + ecx]
sub edx, ecx
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], edx
jmp 0x58e41a
mov eax, dword [ebx + 0x4c]
lea esi, [eax + 1]
add eax, ecx
mov dword [ebp - 0x14], esi
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x48], ecx
cmp dx, word [eax + 0x34]
jae 0x58e618
mov ebx, esi
mov dword [ebp - 0x28], edx
mov eax, dword [eax + 4]
movsx ecx, word [eax + ecx*2]
cmp ecx, 0xfffffffe
jne 0x58e56a
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [esi + 0x64], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + 4]
mov eax, dword [edx + eax]
mov edx, esi
mov ecx, dword [edx]
mov dword [ebp - 0x1c], ecx
test eax, eax
je 0x58e47c
push 0
push 0
push eax
push ecx
call fcn.00568fd0
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
mov edx, dword [ebp + 8]
mov esi, eax
jmp 0x58e47e
xor esi, esi
cmp byte [ecx + 0x45], 0
jne 0x58e54d
test esi, esi
je 0x58e4d2
cmp byte [esi], 0x9d
jne 0x58e4d2
mov edx, dword [edx + 8]
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58e4bb
push 0
push ebx
push dword [ebp - 0x3c]
push 0x53
push edx
call fcn.0056e710
add esp, 0x14
jmp 0x58e54a
lea eax, [ecx + 1]
mov dword [edx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x3c]
mov word [eax + ecx*4], 0x53
jmp 0x58e52d
push ebx
push esi
push edx
call fcn.00589890
mov ecx, eax
add esp, 0xc
mov dword [ebp - 0x38], ecx
cmp ecx, ebx
je 0x58e54a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
test edx, edx
je 0x58e54a
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [edx + 0x18]
mov ecx, dword [ebp - 0x3c]
cmp dword [eax + 0x58], ecx
mov ecx, dword [ebp - 0x38]
jg 0x58e515
push 0
push ebx
push ecx
push 0x54
push edx
call fcn.0056e710
add esp, 0x14
jmp 0x58e54a
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + 1]
mov dword [edx + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 4]
mov edx, dword [ebp - 0x38]
mov word [eax + ecx*4], 0x54
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 4], edx
mov byte [eax + ecx*4 + 3], 0
mov ecx, dword [ebp - 0x1c]
test esi, esi
je 0x58e55b
push esi
push ecx
call fcn.0058a9b0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 0
jmp 0x58e5f4
cmp ecx, 0xffffffff
je 0x58e582
mov eax, dword [ebp + 0xc]
movsx eax, word [eax + 0x20]
cmp ecx, eax
je 0x58e582
mov esi, dword [ebp + 0x1c]
inc esi
add esi, ecx
jmp 0x58e59e
cmp dword [ebp - 0x44], ebx
je 0x58e5f4
mov eax, dword [ebp - 8]
mov edx, ebx
mov esi, dword [ebp + 0x1c]
cmp dword [eax + 0x24], 0
mov eax, 0xffffffff
cmovne edx, eax
mov dword [ebp - 0x44], edx
mov eax, dword [edi + 0x18]
xor edx, edx
test ecx, ecx
mov ecx, dword [edi + 0x20]
sets dl
add edx, 0x54
cmp dword [eax + 0x58], ecx
jg 0x58e5c3
push 0
push ebx
push esi
push edx
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58e5f4
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4], dl
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov byte [eax + ecx*4 + 1], 0
mov eax, dword [ebp - 8]
inc ebx
mov ecx, dword [ebp - 0x48]
add dword [ebp - 0x28], 0x18
inc ecx
mov edx, dword [ebp - 0x28]
movzx eax, word [eax + 0x34]
cmp ecx, eax
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 8]
jl 0x58e433
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
movzx esi, word [eax + 0x34]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + ecx*4]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58e642
push edx
push esi
push dword [ebp - 0x14]
push 0x62
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58e673
mov ebx, dword [ebp - 0x14]
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp + 8]
mov word [eax + ecx*4], 0x62
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [ebp - 8]
movzx eax, word [esi + 0x34]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.00588a70
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x58e6bf
cmp dword [ebp - 0x10], esi
jne 0x58e6bf
cmp byte [ebp + 0x24], 0
jne 0x58e6bf
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x58e6b3
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
jmp 0x58ec86
movzx esi, byte [esi + 0x36]
test esi, esi
jne 0x58e710
mov eax, dword [ebp - 8]
movzx esi, word [eax + 0x34]
push esi
push dword [ebp - 0x14]
push ebx
call fcn.00588a70
add esp, 0xc
cmp esi, dword [ebx + 0x3c]
jle 0x58e6e9
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], eax
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x58e704
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
jmp 0x58ec83
mov al, byte [ebp + 0x28]
cmp al, 0xa
je 0x58e71c
movzx esi, al
jmp 0x58e727
cmp esi, 0xa
mov eax, 2
cmove esi, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x4c], esi
movzx eax, word [eax + 0x32]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
add eax, dword [ebp + 0x18]
push eax
push 0x1d
push edi
call fcn.005a3860
mov eax, dword [ebp - 8]
add esp, 0x18
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jne 0x58e75c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
jmp 0x58e78e
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x1c], edx
cmp eax, ecx
jg 0x58e779
add eax, edx
sub ecx, dword [ebp - 0x20]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x3c], ecx
jmp 0x58e788
mov eax, dword [ebx + 0x4c]
lea edx, [eax + 1]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
cmp byte [ebp - 1], 0
jne 0x58e79d
cmp esi, 5
jne 0x58eaf9
mov esi, dword [ebp + 0xc]
test byte [esi + 0x2a], 0x20
jne 0x58e886
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58e7d2
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x18]
push 0
push edx
push eax
push 0x80
push edi
call fcn.0056e710
mov edx, dword [ebp - 0x1c]
add esp, 0x14
jmp 0x58e80a
mov ebx, dword [ebp - 0xc]
lea eax, [ecx + 1]
add ebx, dword [ebp + 0x18]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x24]
mov word [eax + ecx*4], 0x80
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
cmp byte [ebp - 1], 0
je 0x58eaf9
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58e833
push dword [ebp + 0x20]
push dword [ebp - 0x18]
push edx
push 0x25
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58e864
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [ebp - 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [ebp + 0x20]
mov word [eax + ecx*4], 0x25
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov esi, dword [ebp - 8]
cmp byte [eax + 0x45], 0
jne 0x58eafc
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
jmp 0x58eafc
cmp eax, ecx
je 0x58e94a
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x48], esi
cmp bx, word [ecx + 0x32]
jae 0x58e94a
mov ebx, edx
jmp 0x58e8a6
mov eax, dword [ebp - 8]
movzx edx, word [eax + 0x34]
xor ecx, ecx
test edx, edx
jle 0x58e8cd
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
movzx esi, word [eax + esi*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
cmp si, word [eax]
je 0x58e8f7
inc ecx
add eax, 2
cmp ecx, edx
jl 0x58e8c0
or eax, 0xffffffff
mov ecx, dword [edi + 0x20]
movsx edx, ax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x3c], edx
cmp dword [eax + 0x58], ecx
jg 0x58e8fc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x18]
push ebx
push edx
push eax
push 0x5f
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58e933
movzx eax, cx
jmp 0x58e8d0
mov esi, dword [ebp - 0xc]
lea eax, [ecx + 1]
add esi, dword [ebp + 0x18]
lea ecx, [ecx + ecx*4]
mov edx, dword [ebp - 0x3c]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov edi, dword [ebp - 0x24]
mov word [eax + ecx*4], 0x5f
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], esi
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [ebp - 0x10]
inc ebx
mov esi, dword [ebp - 0x48]
inc esi
mov dword [ebp - 0x48], esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x58e8a3
cmp byte [ebp - 1], 0
mov esi, dword [ebp - 8]
je 0x58eafc
movzx ecx, word [ecx + 0x32]
mov eax, dword [edi + 0x20]
mov edx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x38]
and al, 3
mov dword [ebp - 0x38], 0x24
cmp al, 2
cmove edx, dword [ebp - 0x14]
xor ebx, ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x28], ebx
test ecx, ecx
jle 0x58eafc
nop dword [eax + eax]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov esi, dword [edx]
mov ecx, dword [eax + ebx*4]
mov bh, byte [esi + 0x42]
mov bl, byte [esi + 0x99]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0x54], bh
test ecx, ecx
je 0x58e9c9
movzx eax, bl
push eax
push ecx
push esi
call fcn.0056a1e0
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov edx, dword [ebp + 8]
mov esi, eax
jmp 0x58e9cc
mov esi, dword [esi + 8]
test esi, esi
je 0x58e9dc
movzx eax, bh
lea eax, [eax + eax*4]
lea esi, [esi + eax*4]
add esi, 0xffffffec
test bl, bl
jne 0x58e9fa
test esi, esi
je 0x58e9ea
cmp dword [esi + 0xc], 0
jne 0x58e9fa
push ecx
push esi
push dword [ebp - 0x54]
push edx
call fcn.0058f480
add esp, 0x10
mov esi, eax
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebx + 4]
movsx eax, word [ecx + edx*2]
movzx ecx, word [ebx + 0x32]
dec ecx
cmp edx, ecx
jne 0x58ea1f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], 0x25
jmp 0x58ea22
mov ecx, dword [ebp - 0x3c]
mov ebx, dword [ebp + 0x20]
mov edx, dword [edi + 0x20]
inc ebx
add ebx, eax
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], edx
jg 0x58ea4f
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x48]
push eax
push ecx
push ebx
push dword [ebp - 0x38]
push edi
call fcn.0056e710
mov ebx, dword [ebp - 0x28]
add esp, 0x14
mov edx, eax
jmp 0x58ea88
lea eax, [edx + 1]
mov dword [edi + 0x20], eax
lea ecx, [edx + edx*4]
mov eax, dword [edi + 4]
mov dword [eax + ecx*4 + 4], ebx
mov ebx, dword [ebp - 0x28]
mov byte [eax + ecx*4 + 3], 0
lea ecx, [eax + ecx*4]
mov eax, dword [ebp - 0x38]
mov dword [ecx + 0x10], 0
mov byte [ecx], al
mov eax, dword [ebp - 0x3c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x48]
add eax, ebx
mov byte [ecx + 1], 0
mov dword [ecx + 0xc], eax
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x58ea9e
push esi
push 0xfffffffffffffffc
push eax
call fcn.0056c510
add esp, 0xc
jmp 0x58ead0
test edx, edx
jns 0x58eaa6
mov edx, dword [edi + 0x20]
dec edx
mov eax, dword [edi + 4]
lea ecx, [edx + edx*4]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x58eac5
push 0xfffffffffffffffc
push esi
push eax
push edi
call fcn.005b6720
add esp, 0x10
jmp 0x58ead0
test esi, esi
je 0x58ead0
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfc
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
jne 0x58eae6
mov eax, dword [edi + 0x20]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 4]
mov byte [eax + ecx*4 - 0x11], 0x90
mov eax, dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x28], ebx
movzx eax, word [eax + 0x32]
cmp ebx, eax
jl 0x58e990
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x4c]
test eax, eax
jle 0x58eb87
cmp eax, 3
jle 0x58eb74
cmp eax, 4
jne 0x58eb87
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x20]
cmp dword [eax + 0x58], ecx
jg 0x58eb36
push 0
push dword [ebp + 0x2c]
push 0
push 0xd
push edi
call fcn.0056e710
mov ebx, dword [ebp + 8]
add esp, 0x14
jmp 0x58ec20
mov edx, dword [ebp + 0x2c]
lea eax, [ecx + 1]
mov ebx, dword [ebp + 8]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x20], eax
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x58ec20
mov ebx, dword [ebp + 8]
push esi
push eax
push ebx
call fcn.005a0160
add esp, 0xc
jmp 0x58ec20
mov ebx, dword [ebp + 8]
xor edx, edx
mov ecx, ebx
mov eax, dword [ebx + 0x1a0]
test eax, eax
cmovne ecx, eax
mov eax, dword [ebp - 0x2c]
mov byte [ecx + 0x14], 1
test dword [eax + 0x18], 0x40000
je 0x58ebf0
mov ecx, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
mov eax, dword [ecx]
test dword [eax + 0x18], 0x1000000
je 0x58ebc9
push dword [ebp + 0xc]
push ecx
call fcn.0059fe80
add esp, 8
mov ebx, eax
mov ecx, ebx
test ebx, ebx
je 0x58ebe3
nop
cmp byte [ecx + 8], 0x6d
jne 0x58ebdc
movzx eax, byte [ecx + 9]
or esi, eax
mov ecx, dword [ecx + 0x20]
test ecx, ecx
jne 0x58ebd0
xor edx, edx
test esi, esi
mov esi, dword [ebp - 8]
cmovne edx, ebx
mov ebx, dword [ebp + 8]
cmp esi, dword [ebp - 0x10]
push 0xffffffffffffffff
sete al
movzx eax, al
push eax
push 5
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push edx
push dword [ebp + 0xc]
push ebx
call fcn.0058ef90
add esp, 0x2c
mov dword [ebp - 0x34], 1
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x78]
test ecx, ecx
je 0x58ec3b
mov eax, dword [ebp - 0x18]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [edi + 0x20]
mov dword [ecx], eax
mov eax, dword [edi + 0x20]
dec eax
mov dword [edx + 0x60], eax
movzx esi, word [esi + 0x34]
push esi
push dword [ebp - 0x14]
push ebx
call fcn.00588a70
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp esi, dword [ebx + 0x3c]
jle 0x58ec61
mov dword [ebx + 0x3c], esi
mov dword [ebx + 0x40], eax
mov esi, dword [ebp - 0x1c]
cmp esi, eax
je 0x58ec83
push dword [ebp - 0x20]
push esi
push ebx
call fcn.00588a70
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, dword [ebx + 0x3c]
jle 0x58ec83
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], esi
mov esi, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0x10]
mov esi, dword [esi + 0x14]
inc eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], eax
test esi, esi
jne 0x58e1c0
mov eax, dword [ebp - 0x30]
pop esi
pop ebx
test eax, eax
je 0x58ed42
mov ecx, dword [edi + 0x20]
lea edx, [eax + 1]
mov eax, dword [edi + 0x18]
cmp dword [eax + 0x58], ecx
jg 0x58ecce
push 0
push edx
push 0
push 0xd
push edi
call fcn.0056e710
add esp, 0x14
jmp 0x58ed01
lea eax, [ecx + 1]
mov dword [edi + 0x20], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 4]
mov word [eax + ecx*4], 0xd
mov byte [eax + ecx*4 + 3], 0
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x18]
dec ecx
mov dword [eax + 0x60], ecx
mov ecx, dword [ebp - 0x40]
mov edx, dword [edi + 0x20]
test ecx, ecx
jns 0x58ed18
lea ecx, [edx - 1]
mov eax, dword [edi]
cmp byte [eax + 0x45], 0
je 0x58ed35
mov ecx, dword [ebp - 0x34]
mov eax, 0x68444c
pop edi
mov dword [eax + 8], edx
mov eax, dword [ebp + 0x30]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
lea ecx, [ecx + ecx*4]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp - 0x34]
pop edi
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret